def test_right_input(self): with self._patch_user_input(game, 'w'): move = handle_user_input() self.assert_equal(move, 'w')