Public Member Functions | |
def | __call__ |
def | __getattr__ |
def | __init__ |
Public Attributes | |
orig_method |
Wraps a test method to raise an error if it returns a value. This is mainly used to detect undecorated generators (if a test method yields it must use a decorator to consume the generator), but will also detect other kinds of return values (these are not necessarily errors, but we alert anyway since there is no good reason to return a value from a test.
Definition at line 105 of file testing.py.
def tornado.testing._TestMethodWrapper.__init__ | ( | self, | |
orig_method | |||
) |
Definition at line 114 of file testing.py.
def tornado.testing._TestMethodWrapper.__call__ | ( | self, | |
args, | |||
kwargs | |||
) |
Definition at line 117 of file testing.py.
def tornado.testing._TestMethodWrapper.__getattr__ | ( | self, | |
name | |||
) |
Proxy all unknown attributes to the original method. This is important for some of the decorators in the `unittest` module, such as `unittest.skipIf`.
Definition at line 126 of file testing.py.
Definition at line 114 of file testing.py.