def METHOD_NAME():
    try:
        d = func(*args, **kargs)
        try:
            d.addCallbacks(callback, errback)
        # Check for a common mistake and display a nice error
        # message
        except AttributeError:
            raise TypeError("you must return a twisted Deferred "
                            "from your test case!")
    # Catch exceptions raised in the test body (from the
    # Twisted thread)
    except:
        q.put(sys.exc_info())