improved test_delete_all_bookmarks

This commit is contained in:
Paul 2016-08-31 23:22:28 -05:00
parent cfb2abfbc5
commit 1644a9f63f

View File

@ -276,9 +276,12 @@ class TestBukuDb(unittest.TestCase):
# deleting all bookmarks
self.bdb.delete_all_bookmarks()
# assert table has been dropped
with self.assertRaises(sqlite3.OperationalError):
with self.assertRaises(sqlite3.OperationalError) as ctx_man:
self.bdb.get_bookmark_by_index(0)
err_msg = str(ctx_man.exception)
self.assertEqual(err_msg, 'no such table: bookmarks')
# @unittest.skip('skipping')
def test_replace_tag(self):
indices = []