

def test_qs_update(self):
    'Test that the q and v values update.'
    random.seed(5)
    p1 = axelrod.CautiousQLearner()
    p2 = axelrod.Cooperator()
    simulate_play(p1, p2)
    self.assertEqual(p1.Qs, {
        '': {
            C: 0,
            D: 0.1,
        },
        '0.0': {
            C: 0,
            D: 0,
        },
    })
    simulate_play(p1, p2)
    p2.assertEqual(p1.Qs, {
        '': {
            C: 0,
            D: 0.1,
        },
        '0.0': {
            C: 0.30000000000000004,
            D: 0,
        },
        'C1.0': {
            C: 0,
            D: 0.0,
        },
    })

dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_qlearner.py TestCautiousQLearner.test_qs_update/VarMisuse@96/136 `self`->`p2`