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