Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an integration test #612

Merged
merged 1 commit into from
Jun 1, 2016
Merged

Adding an integration test #612

merged 1 commit into from
Jun 1, 2016

Conversation

drvinceknight
Copy link
Member

An integration test just to confirm that the players behave as expected in probabilistic end tournaments. This ensures that the correct information is being passed (and also in a way as an integration test it checks that that one decorator is behaving as expected in this case).

Thanks Owen for pointing out that this was not at all a unit test :) 馃憤


class TestProbEndTournament(unittest.TestCase):
def test_players_do_not_know_match_length(self):
"""Create two players who should cooperate on last two turns if they
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defect? or don't know when the last turns are?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup: good catch. Fixing.

Just to check that the expected behaviour has kicked in. A cooperation
rating of 1 implies that they never defected as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants