Add failing test case for table drop
This commit is contained in:
parent
d16f1df8cd
commit
47917c6867
@ -304,6 +304,11 @@ class TableTestCase(unittest.TestCase):
|
|||||||
else:
|
else:
|
||||||
assert False, 'we should not reach else block, no exception raised!'
|
assert False, 'we should not reach else block, no exception raised!'
|
||||||
|
|
||||||
|
def test_table_drop(self):
|
||||||
|
assert 'weather' in self.db
|
||||||
|
self.db['weather'].drop()
|
||||||
|
assert 'weather' not in self.db
|
||||||
|
|
||||||
def test_columns(self):
|
def test_columns(self):
|
||||||
cols = self.tbl.columns
|
cols = self.tbl.columns
|
||||||
assert len(list(cols)) == 4, 'column count mismatch'
|
assert len(list(cols)) == 4, 'column count mismatch'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user