Public Member Functions
tornado.testing.LogTrapTestCase Class Reference

List of all members.

Public Member Functions

def run

Detailed Description

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 `~logging.StreamHandler`.  This is true for both
`logging.basicConfig` and the "pretty logging" configured by
`tornado.options`.  It is not compatible with other log buffering
mechanisms, such as those provided by some test runners.

Definition at line 522 of file testing.py.


Member Function Documentation

def tornado.testing.LogTrapTestCase.run (   self,
  result = None 
)

Definition at line 538 of file testing.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:21