def test_process_input_matching_multiple_commands_ignored(self): location_one = Location('L1') location_two = Location('L2') location_one.add_one_way_exit(Direction('quick'), location_two) game = Game([location_one, location_two]) game.process_input('q')
def test_movement(self): location_one = Location('L1') location_two = Location('L2') location_one.add_one_way_exit(Direction('west'), location_two) game = Game([location_one, location_two]) game.process_input('w') self.assertEqual('L2', game.character.current_location.name)