Public Member Functions | Public Attributes
tornado.testing._TestMethodWrapper Class Reference

List of all members.

Public Member Functions

def __call__
def __getattr__
def __init__

Public Attributes

 orig_method

Detailed Description

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.


Constructor & Destructor Documentation

def tornado.testing._TestMethodWrapper.__init__ (   self,
  orig_method 
)

Definition at line 114 of file testing.py.


Member Function Documentation

def tornado.testing._TestMethodWrapper.__call__ (   self,
  args,
  kwargs 
)

Definition at line 117 of file testing.py.

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.


Member Data Documentation

Definition at line 114 of file testing.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40