Example #1
0
    def test_returns_foil_inspection_strategy_of_opponent(self):
        self.versus_test(axelrod.GellerDefector(),
                         expected_actions=[(D, C), (D, C), (D, C), (D, C)])

        self.versus_test(axelrod.Darwin(),
                         expected_actions=[(C, C), (C, C), (C, C)])

        self.versus_test(axelrod.MindReader(),
                         expected_actions=[(D, D), (D, D), (D, D)])
Example #2
0
    def test_returns_foil_inspection_strategy_of_opponent(self):
        seed = 2
        # each Geller type returns the other's foil_inspection_strategy
        self.versus_test(axelrod.GellerDefector(),
                         expected_actions=[(D, D), (D, D), (D, C), (D, C)],
                         seed=seed)

        self.versus_test(axelrod.Darwin(),
                         expected_actions=[(C, C), (C, C), (C, C)])

        self.versus_test(axelrod.MindReader(),
                         expected_actions=[(D, D), (D, C), (D, D)],
                         seed=seed)