Add tables property to database.

This commit is contained in:
Friedrich Lindenberg
2013-04-01 22:09:16 +02:00
parent 0f81dbe52c
commit 6ee58e850d
2 changed files with 14 additions and 5 deletions
+3
View File
@@ -12,6 +12,9 @@ class DatabaseTestCase(unittest.TestCase):
for row in TEST_DATA:
self.tbl.insert(row)
def test_tables(self):
assert self.db.tables==['weather'], self.db.tables
def test_create_table(self):
table = self.db['foo']
assert table.table.exists()