Public Member Functions | |
def | run |
A test case that captures and discards all logging output if the test passes. Some libraries can produce a lot of logging output even when the test succeeds, so this class can be useful to minimize the noise. Simply use it as a base class for your test case. It is safe to combine with AsyncTestCase via multiple inheritance ("class MyTestCase(AsyncHTTPTestCase, LogTrapTestCase):") This class assumes that only one log handler is configured and that it is a StreamHandler. This is true for both logging.basicConfig and the "pretty logging" configured by tornado.options.
Definition at line 283 of file testing.py.
def tornado.testing.LogTrapTestCase.run | ( | self, | |
result = None |
|||
) |
Definition at line 297 of file testing.py.