

def test_reset_method(self):
    '\n        tests the reset method\n        '
    P1 = axelrod.Grumpy(starting_state='Grumpy')
    P1.history = [C, D, D, D]
    P1.state = 'Nice'
    P1.reset()
    self.assertEqual(P1.history, [])
    self.assertEqual(P1.state, 'Grumpy')

dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_grumpy.py TestGrumpy.test_reset_method/original