def test_size_cannot_be_modified_after_creation(self): game = Game(3) with self.assertRaises(AttributeError): game.size = 4