Exemple #1
0
 def test_scissors_wins_over_paper_2(self):
     game = PaperRockScissors()
     result = game.winnerComprover(1, 3)
     self.assertEqual("Player 2 wins", result)
Exemple #2
0
 def test_rock_wins_over_scissors(self):
     game = PaperRockScissors()
     result = game.winnerComprover(2,3)
     self.assertEqual("Player 1 wins", result)
Exemple #3
0
 def test_draw_3(self):
     game = PaperRockScissors()
     result = game.winnerComprover(3,3)
     self.assertEqual("Empate", result)
Exemple #4
0
 def test_admit_valid_numbers_2(self):
     game = PaperRockScissors()
     result = game.inputComprover(1)
     self.assertEqual(True, result)
Exemple #5
0
 def test_dont__admit_numbers_out_of_rules_2(self):
     game = PaperRockScissors()
     result = game.inputComprover(4)
     self.assertEqual(False, result)
Exemple #6
0
 def test_dont__admit_letters(self):
     game = PaperRockScissors()
     result = game.inputComprover('a')
     self.assertEqual(False, result)