def test_beyond_fence_1_positive(self): cursor = Cursor([[1]]) cursor.advance() cursor.advance() self.assertTrue(cursor.beyond_fence())
def test_advance(self): cursor = Cursor([[1]]) cursor.advance() self.assertEqual(cursor.position, (1, 0))
def test_beyond_fence_1_negative(self): cursor = Cursor([[1]]) cursor.advance() self.assertFalse(cursor.beyond_fence())