def METHOD_NAME(self):
    """Test to ensure an error is raised when trying to change the label
    of a player in a restriction
    """
    def foo():
        self.restriction.players[0].label = ""
    self.assertRaises(pygambit.UndefinedOperationError, foo)