Example #1
0
 def test_has_more_rows_negative(self):
     cursor = Cursor([[1]])
     cursor.advance_row()
     self.assertTrue(cursor.has_more_rows())
Example #2
0
 def test_advance_row(self):
     cursor = Cursor([[]])
     cursor.advance_row()
     self.assertEqual(cursor.position, (0, 1))
Example #3
0
 def test_read_value_x_y(self):
     cursor = Cursor([[1], [2]])
     cursor.advance_row()
     self.assertEqual(cursor.read(), 2)