def test_input_position_1(self): game = TaTeTi() valid = ['1.1', '1.2', '1.3', '2.1', '2.3', '3.1', '3.2', '3.3'] with patch('builtins.input', side_effect=['4.4', '2.2']): game.input_position() self.assertEqual(game.valid, valid)
def test_input_position_2(self): game = TaTeTi() with patch('builtins.input', side_effect=['6.1', '7.7', '1.1']): self.assertEqual(game.input_position(), '1.1')