def test_list_tables(self): res = db.list_tables(TEST_DB) self.assertEqual(res, [], 'list_tables should be empty at this stage') self.conn.execute(TEST_TABLESQL) res = db.list_tables(TEST_DB) self.assertEqual( res, [TEST_TABLE], 'list_tables should only include TEST_TABLE at this stage')
def test_list_tables(self): res = db.list_tables(TEST_DB) self.assertEqual(res, [], 'list_tables should be empty at this stage') self.conn.execute(TEST_TABLESQL) res = db.list_tables(TEST_DB) self.assertEqual(res, [TEST_TABLE], 'list_tables should only include TEST_TABLE at this stage')
def test_list_tables(self): assert 'schema_table' in db.list_tables() db.remove() assert_eq(db.list_tables(), [])
def get(self, database): try: self.write(dumps(db.list_tables(database))) except db.NoSuchDatabase: raise HTTPError(404)