def test_that_it_turns_left_when_it_receives_l_commmand_and_is_oriented_est( self): # given rover = Rover(5, 5, Direction.EST) command_list = [] command_list.append(Command.LEFT) # when rover.move(command_list) # then assert rover.getOrientation() == (Direction.NORTH)
def test_that_it_turns_right_when_it_receives_r_commmand_and_is_oriented_south( self): # given rover = Rover(5, 5, Direction.SOUTH) command_list = [] command_list.append(Command.RIGHT) # when rover.move(command_list) # then assert rover.getOrientation() == (Direction.WEST)
def test_that_it_returns_orientation(self): # given rover = Rover(0, 0, Direction.NORTH) # then assert rover.getOrientation() == Direction.NORTH