From c9cd4bf52238190f668d7935439762e7ca504796 Mon Sep 17 00:00:00 2001 From: Chen Liu Date: Mon, 3 Feb 2014 16:52:00 -0500 Subject: [PATCH] add test case for repr(table) --- test/test_persistence.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_persistence.py b/test/test_persistence.py index 4a8f80a..aede68a 100644 --- a/test/test_persistence.py +++ b/test/test_persistence.py @@ -184,6 +184,9 @@ class TableTestCase(unittest.TestCase): assert self.tbl.delete() is True, 'should return non zero' assert len(self.tbl) == 0, len(self.tbl) + def test_repr(self): + assert repr(self.tbl) == '', 'the representation should be ' + def test_delete_nonexist_entry(self): assert self.tbl.delete(place='Berlin') is False, 'entry not exist, should fail to delete'