Use unittest2's module hooks for setting up the django environment.
authorDiane Trout <diane@caltech.edu>
Thu, 29 Nov 2012 00:45:33 +0000 (16:45 -0800)
committerDiane Trout <diane@caltech.edu>
Thu, 29 Nov 2012 01:20:43 +0000 (17:20 -0800)
commit4b086aaab751149c20ad355cc4645d717bdd5458
treea78e0372974dd9b08de8ef77f44b061e399233cd
parent1fd624e3f9228d671f40fc265cd76e2c70b51cac
Use unittest2's module hooks for setting up the django environment.

It'll set up and destroy the test environment as well as
configure the email handler per module test.

I only added the code to the modules that were using
django.test.TestCase
htsworkflow/frontend/experiments/test_experiments.py
htsworkflow/frontend/inventory/test_inventory.py
htsworkflow/frontend/samples/test_samples.py
htsworkflow/submission/test/test_condorfastq.py