Make table instances singleton-ish.
This commit is contained in:
@@ -346,6 +346,12 @@ class TableTestCase(unittest.TestCase):
|
||||
self.db['weather'].drop()
|
||||
assert 'weather' not in self.db
|
||||
|
||||
def test_table_drop_then_create(self):
|
||||
assert 'weather' in self.db
|
||||
self.db['weather'].drop()
|
||||
assert 'weather' not in self.db
|
||||
self.db['weather'].insert({'foo': 'bar'})
|
||||
|
||||
def test_columns(self):
|
||||
cols = self.tbl.columns
|
||||
assert len(list(cols)) == 4, 'column count mismatch'
|
||||
|
||||
Reference in New Issue
Block a user