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