Esempio n. 1
0
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
Esempio n. 2
0
 def tearDownClass(cls):
     if dbutil.has_db(cls.dbinfo):
         dbutil.drop_db(cls.dbinfo)
Esempio n. 3
0
 def test10DropDB(self):
     dbutil.drop_db(self.dbinfo)
     has = dbutil.has_db(self.dbinfo)
     self.assertFalse(has)