Skip to content

Commit e0f5359

Browse files
committed
Change retaliation test.
1 parent 5033f0b commit e0f5359

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

axelrod/tests/strategies/test_prober.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ class TestNaiveProber(TestPlayer):
254254
def test_strategy(self):
255255
self.first_play_test(C)
256256
# Always retaliate a defection
257-
actions = [(C, D)] + [(D, D)] * 10
258-
self.versus_test(opponent=axelrod.Defector(), expected_actions=actions)
257+
opponent = axelrod.MockPlayer([C, D, D, D, D])
258+
actions = [(C, C), (C, D), (D, D), (D, D), (D, D)]
259+
self.versus_test(opponent=opponent, expected_actions=actions)
259260

260261

261262
def test_random_defection(self):

0 commit comments

Comments
 (0)