]> git.decadent.org.uk Git - dak.git/blobdiff - tests/db_test.py
Really fix the DebVersion type in dbconn.py.
[dak.git] / tests / db_test.py
index 7e013c2421e4ed696b6289cc785fcb722529f6a8..cdae54a03e5e378a15df5afa98105e62a6bb8ac6 100644 (file)
@@ -17,6 +17,9 @@ warnings.filterwarnings('ignore', \
 class DBDakTestCase(DakTestCase):
     def setUp(self):
         cnf = Config()
+        if cnf["DB::Name"] in ('backports', 'obscurity', 'projectb'):
+            self.fail("You have configured an invalid database name: '%s'." % \
+                    cnf["DB::Name"])
         if cnf["DB::Host"]:
             # TCP/IP
             connstr = "postgres://%s" % cnf["DB::Host"]
@@ -39,7 +42,6 @@ class DBDakTestCase(DakTestCase):
         self.session = DBConn().session()
 
     def tearDown(self):
-        #pass
         self.session.close()
         #self.metadata.drop_all()