Fix test to use newer django database dictionary instead of the old single database...
[htsworkflow.git] / htsworkflow / frontend / experiments / test_experiments.py
index d4c556a9f8c0ef1d0d864a66e4629c8c3dfa17bd..8907192cf46376b1b8a28639f9a8c44207a5ef72 100644 (file)
@@ -29,7 +29,8 @@ LANE_SET = range(1,9)
 NSMAP = {'libns':'http://jumpgate.caltech.edu/wiki/LibraryOntology#'}
 
 from django.db import connection
-OLD_DB_NAME = settings.DATABASE_NAME
+
+OLD_DB_NAME = settings.DATABASES['default']['NAME']
 VERBOSITY = 0
 def setUpModule():
     setup_test_environment()
@@ -494,7 +495,7 @@ class TestFileType(TestCase):
         file_type_objects = models.FileType.objects
         name = 'QSEQ tarfile'
         file_type_object = file_type_objects.get(name=name)
-        self.assertEqual(u"<FileType: QSEQ tarfile>",
+        self.assertEqual(u"QSEQ tarfile",
                              unicode(file_type_object))
 
     def test_find_file_type(self):