def test_get_upstream_player_id(self): players = init_players(5) self.assertEqual(get_upstream_player_id(players[0], players), 4)
def test_get_downstream_player_id(self): players = init_players(5) self.assertEqual(get_downstream_player_id(players[4], players), 0)
def test_init_players(self): self.assertTrue(len(init_players(5)), 5)