return RDF.Node(RDF.Uri('http://localhost%s' % (url,)))
class InventoryTestCase(TestCase):
- fixtures = ['test_user', 'test_harddisks']
+ fixtures = ['initial_data', 'test_user', 'test_harddisks']
def test_fixture(self):
# make sure that some of our test data is was loaded
flowcells = [ str(x.uri) for x in targets]
return flowcells
-OLD_DB = settings.DATABASES['default']['NAME']
-def setUpModule():
- setup_test_environment()
- connection.creation.create_test_db()
-
-def tearDownModule():
- connection.creation.destroy_test_db(OLD_DB)
- teardown_test_environment()
-
def suite():
from unittest2 import TestSuite, defaultTestLoader
suite = TestSuite()