def test_high_low_get_player(self): ted = Player("Ted") players = [ted] first_game = HighLow(players) self.assertEqual(players, first_game.get_players(), "Checks whether get_players() method works correctly.\nExpected:"+str([])+"\nSubmitted:"+str(first_game.get_players())) second_game = HighLow([]) self.assertEqual([], second_game.get_players(), "Checks whether get_players() method works correctly..\nExpected:"+str([])+"\nSubmitted:"+str(second_game.get_players()))
def test_high_low_get_player(self): ted = Player("Ted") players = [ted] first_game = HighLow(players) self.assertEqual( players, first_game.get_players(), "Checks whether get_players() method works correctly.\nExpected:" + str([]) + "\nSubmitted:" + str(first_game.get_players())) second_game = HighLow([]) self.assertEqual( [], second_game.get_players(), "Checks whether get_players() method works correctly..\nExpected:" + str([]) + "\nSubmitted:" + str(second_game.get_players()))