Beispiel #1
0
 def test_random_same_as_a_slap_probability(self, random_mock):
     random_mock.return_value = 0.26
     game = Egrt(0.26)
     self.assertFalse(game.a_won_slap())
Beispiel #2
0
 def test_random_greater_than_a_slap_probability(self, random_mock):
     random_mock.return_value = 0.27
     game = Egrt(0.26)
     self.assertFalse(game.a_won_slap())
Beispiel #3
0
 def test_random_less_than_a_slap_probability(self, random_mock):
     random_mock.return_value = 0.25
     game = Egrt(0.26)
     self.assertTrue(game.a_won_slap())