def test_circular_list_index_three(self): """edge test going from back to front. Returns index not items from array""" c = Car(1) array = [1, 2, 3, 4] self.assertEqual(c.circular_list(array, 3, 1), 0)
def test_circular_list(self): """edge test going from front to back. Returns index not items from array""" c = Car(1) array = [1, 2, 3, 4] self.assertEqual(c.circular_list(array, 0, 0), 3)