def test_it_should_be_able_to_give_all_the_point_that_a_car_occupies_with_direction_west(self): car = Car("5 3 4 W") self.assertEquals([(2, 3), (3, 3), (4, 3), (5, 3)], car.occupied_spaces())
def test_it_should_be_able_to_give_all_the_point_that_a_car_occupies_with_direction_south(self): car = Car("2 0 4 S") self.assertEquals([(2, 3), (2, 2), (2, 1), (2, 0)], car.occupied_spaces())