tests/test_rowdict.py
changeset 81 f709b1c7ca0c
parent 48 b82c7c2fb5af
child 104 d8ff52a0390f
--- 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()
+