def test_history_assignment(self): player = Player() with self.assertRaises(AttributeError): player.history = []