Skip to content

Commit 423975e

Browse files
committed
adds test for game value in tournament attributes dictionary
1 parent dff229b commit 423975e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

axelrod/tests/unit/test_tournament.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ def test_init(self):
5050
noise=0.2)
5151
self.assertEqual(len(tournament.players), len(self.players))
5252
self.assertEqual(
53-
tournament.players[0].tournament_attributes['length'], 200)
53+
tournament.players[0].tournament_attributes['length'], 200
54+
)
55+
self.assertIsInstance(
56+
tournament.players[0].tournament_attributes['game'], axelrod.Game
57+
)
5458
self.assertEqual(tournament.game.score(('C', 'C')), (3, 3))
5559
self.assertEqual(tournament.turns, 200)
5660
self.assertEqual(tournament.repetitions, 10)

0 commit comments

Comments
 (0)