def METHOD_NAME():
    try:
        foo = obj.x
    except AttributeError:
        # This is expected -- we haven't set obj.x in this thread yet!
        self._failed = ""  # passed
    else:
        self._failed = ('Incorrectly got value %r from class %r\n' %
                        (foo, c))
        sys.stderr.write(self._failed)