예제 #1
0
 def test__get_move_char_Should_ReturnExpected_When_NotMoving(self, move_down_patch, *patches):
     term = Terminal(13, create=False)
     term.current = 2
     result = term.get_move_char(2)
     self.assertEqual(result, '')
예제 #2
0
 def test__get_move_char_Should_ReturnExpected_When_MovingUp(self, move_up_patch, *patches):
     move_up_patch.return_value = Mock(), Mock()
     term = Terminal(13, create=False)
     term.current = 12
     result = term.get_move_char(7)
     self.assertEqual(result, move_up_patch.return_value)