Skip to content

Commit

Permalink
add test case for repr(table)
Browse files Browse the repository at this point in the history
  • Loading branch information
cli248 authored and stefanw committed Feb 4, 2014
1 parent 58a5891 commit c9cd4bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ def test_delete(self):
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) == '<Table(weather)>', 'the representation should be <Table(weather)>'

def test_delete_nonexist_entry(self):
assert self.tbl.delete(place='Berlin') is False, 'entry not exist, should fail to delete'

Expand Down

0 comments on commit c9cd4bf

Please sign in to comment.