Skip to content

Commit 9457413

Browse files
drvinceknightmarcharper
authored andcommitted
Change mock players to Cr and Dr.
1 parent 6375474 commit 9457413

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

axelrod/tests/strategies/test_alternator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ def test_strategy(self):
2424
# Starts by cooperating.
2525
self.first_play_test(C)
2626

27-
opponent = axelrod.MockPlayer()
2827
actions = [(C, C), (D, C)] * 5
29-
self.versus_test(opponent, expected_actions=actions)
28+
self.versus_test(axelrod.Cooperator(), expected_actions=actions)
3029

31-
opponent = axelrod.MockPlayer(D)
3230
actions = [(C, D), (D, D)] * 5
33-
self.versus_test(opponent, expected_actions=actions)
31+
self.versus_test(axelrod.Defector(), expected_actions=actions)
3432

3533
opponent = axelrod.MockPlayer([D, C])
3634
actions = [(C, D), (D, C)] * 5

0 commit comments

Comments
 (0)