

def test_vs_update(self):
    '\n        Test that the q and v values update\n        '
    random.seed(5)
    p1 = axelrod.ArrogantQLearner()
    p2 = axelrod.Cooperator()
    simulate_play(p1, p2)
    self.assertEqual(p1.Vs, {
        '': 0.9,
        '0.0': 0,
    })
    simulate_play(p1, p2)
    self.assertEqual(p1.Vs, {
        '': 0.9,
        '0.0': 2.7,
        'C1.0': 0,
    })

dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_qlearner.py TestArrogantQLearner.test_vs_update/original