We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f21591 commit 314c9c6Copy full SHA for 314c9c6
axelrod/tests/strategies/test_titfortat.py
@@ -633,17 +633,17 @@ def test_strategy(self):
633
634
# Plays TfT and defects in last round
635
actions = [(C, C), (C, D), (D, C), (C, D), (D, C), (D, D)]
636
- self.versus_test(axelrod.Alternator(), expected_actions=actions
+ self.versus_test(axelrod.Alternator(), expected_actions=actions,
637
attrs={"is_defector": False},)
638
639
actions = [(C, C), (C, D), (D, C), (C, D), (D, C), (C, D)]
640
self.versus_test(axelrod.Alternator(), expected_actions=actions,
641
- attrs={"is_defector": False}
+ attrs={"is_defector": False},
642
match_attributes={"length": -1})
643
644
# Becomes defector after 5 defections
645
opponent = axelrod.MockPlayer(actions=[C, D, D, D, D, D, C, C])
646
actions = [(C, C), (C, D), (D, D), (D, D),
647
(D, D), (D, D), (D, C), (D, C)]
648
- self.versus_test(opponent, expected_actions=actions
+ self.versus_test(opponent, expected_actions=actions,
649
attrs={"is_defector": True})
0 commit comments