We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1734f2a commit 7ff3bf6Copy full SHA for 7ff3bf6
1 file changed
test/test_driver.py
@@ -1060,6 +1060,11 @@ def to_dict(self):
1060
d2 = cur.to_dict(row, d)
1061
self.assertDictEqual(d2, sample)
1062
self.assertIs(d, d2)
1063
+ with self.assertRaises(AssertionError) as cm:
1064
+ cur.to_dict([1])
1065
+ cur.to_dict([1, 2, 3])
1066
+ self.assertTupleEqual(cm.exception.args, ('Length of data must match number of fields',))
1067
+
1068
1069
class TestScrollableCursor(DriverTestBase):
1070
def setUp(self):
0 commit comments