Skip to content

Commit

Permalink
test repr/str
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed May 4, 2013
1 parent fa1df3d commit c8e4472
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Record/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,9 @@ def test_cmp_other(self):
self.assertNotEqual(r, {'a': 1, 'b': 2, 'c': None})
self.assertNotEqual(r, 1)
self.assertNotEqual(r, 'a')

def test_repr(self):
r = R((1, 2, None))
self.assertTrue(repr(r).startswith('<Record.tests.R '))
self.assertTrue(str(r).startswith('<Record.tests.R '))
self.assertTrue(unicode(r).startswith(u'<Record.tests.R '))

0 comments on commit c8e4472

Please sign in to comment.