@classmethod<EOL><INDENT>def block(cls, method):<DEDENT>
def blocked_method(self, *a, **kw):<EOL><INDENT>raise cls(self, method.__name__, a, kw)<EOL><DEDENT>return blocked_method<EOL>
This decorator raises a ConstraintError (or subclass) on any
call to the given method.