def test_record_past_rounds(): tourney = Tournament(['a', 'b', 'c', 'd', 'e'], DummyRoundGenerator()) tourney.startNextRound() tourney.startNextRound() past_rounds = tourney.pastRounds() # expects 2 nonempty past rounds with all unique game ids return len(past_rounds) == 2 \ and len(past_rounds[0]) > 0\ and len(past_rounds[1]) > 0 \ and len(set(past_rounds[0]) & set(past_rounds[1])) == 0