def test_isolation_level(self): with deepstar_path(): Model.db.execute('CREATE TABLE test (test TEXT)') Model.db.execute("INSERT INTO test (test) VALUES ('test')") Model.close() Model.init() self.assertEqual( Model.db.execute('SELECT test FROM test').fetchone(), ('test', )) # noqa
def a(): Model.init()