

def test_strategy(self):
    'Tests that it chooses the best strategy.'
    random.seed(9)
    p1 = axelrod.ArrogantQLearner()
    p1.state = 'CCDC'
    p1.Qs = {
        '': {
            C: 0,
            D: 0,
        },
        'CCDC': {
            C: 2,
            D: 6,
        },
    }
    p2 = axelrod.Cooperator()
    test_responses(self, p2, p2, [], [], [C, C, C, C, C, C, C])

dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_qlearner.py TestArrogantQLearner.test_strategy/VarMisuse@87/122 `p1`->`p2`