def setUp_test_db():
 db.upgradeDatabase(db.DBConnection(), mainDB.InitialSchema)
 db.sanityCheckDatabase(db.DBConnection(), mainDB.MainSanityCheck)
 db.upgradeDatabase(db.DBConnection('cache.db'), cache_db.InitialSchema)

def setUp_test_db ( ) : db . upgradeDatabase ( db . DBConnection ( ) , mainDB . InitialSchema ) db . sanityCheckDatabase ( db . DBConnection ( ) , mainDB . MainSanityCheck ) db . upgradeDatabase ( db . DBConnection ( 'cache.db' ) , cache_db . InitialSchema )
upgrades the db to the latest version .