def main(): test_dbinfo = dbutil.get_master_dbinfo() test_dbinfo = test_dbinfo.copy(dbname='%s_test' % test_dbinfo.get_dbname()) dbutil.change_master_dbinfo(test_dbinfo) migration.setup_db() migration.setup_core_tables() b = runtests(quiet=False) dbutil.drop_db(dbutil.get_master_dbinfo()) return b
def tearDownClass(cls): if dbutil.has_db(cls.dbinfo): dbutil.drop_db(cls.dbinfo)
def test10DropDB(self): dbutil.drop_db(self.dbinfo) has = dbutil.has_db(self.dbinfo) self.assertFalse(has)