def test_rps_pvs(self): return_value = main.rps("username_a", "paper", "username_b", "scissors") self.assertEqual(return_value, "username_b")
def test_rps_rvp(self): return_value = main.rps("username_a", "rock", "username_b", "paper") self.assertEqual(return_value, "username_b")
def test_number_of_trials(): players = ["源静香", "野比のび太"] results = rps(tuple(Player(player) for player in players), 100) assert len(results) == 100