def METHOD_NAME(self):
    """Release the dummy lock."""
    # XXX Perhaps shouldn't actually bother to test?  Could lead
    #     to problems for complex, threaded code.
    if not self.locked_status:
        raise error
    self.locked_status = False
    return True