Пример #1
0
 def testDatabaseManager(self):
     DatabaseManager.add("default", ":memory:")
     db = DatabaseManager.instance("default")
     self.assertTrue(db != None, "Database exists.")
     DatabaseManager.remove("default")
     self.assertRaises(KeyError, DatabaseManager.instance, "DatabaseManager raises KeyError when no db exists.")
Пример #2
0
 def tearDown(self):
     DatabaseManager.remove('default')
Пример #3
0
 def tearDown(self):
     DatabaseManager.remove("default")
     ProcInfo.purge()