--- a/tests/test_rowdict.py Thu Mar 21 17:40:11 2013 +0100
+++ b/tests/test_rowdict.py Wed Apr 03 15:57:36 2013 +0200
@@ -23,9 +23,15 @@
self.assertEqual(self.rowdict[0], 123)
def test_rowdict_unpack(self):
- _id, name = self.rowdict
+ _id, name = self.rowdict.values()
self.assertEqual(name, 'hello')
+ def test_rowdict_repr(self):
+ repr_text = "RowDict([('id', 123), ('name', 'hello')])"
+ self.assertEqual(repr(self.rowdict), repr_text)
+ self.assertEqual(str(self.rowdict), repr_text)
+
if __name__ == '__main__':
unittest.main()
+