Public Member Functions
tornado.options._Mockable Class Reference

List of all members.

Public Member Functions

def __delattr__
def __getattr__
def __init__
def __setattr__

Detailed Description

`mock.patch` compatible wrapper for `OptionParser`.

As of ``mock`` version 1.0.1, when an object uses ``__getattr__``
hooks instead of ``__dict__``, ``patch.__exit__`` tries to delete
the attribute it set instead of setting a new one (assuming that
the object does not catpure ``__setattr__``, so the patch
created a new attribute in ``__dict__``).

_Mockable's getattr and setattr pass through to the underlying
OptionParser, and delattr undoes the effect of a previous setattr.

Definition at line 345 of file options.py.


Constructor & Destructor Documentation

def tornado.options._Mockable.__init__ (   self,
  options 
)

Definition at line 357 of file options.py.


Member Function Documentation

def tornado.options._Mockable.__delattr__ (   self,
  name 
)

Definition at line 370 of file options.py.

def tornado.options._Mockable.__getattr__ (   self,
  name 
)

Definition at line 362 of file options.py.

def tornado.options._Mockable.__setattr__ (   self,
  name,
  value 
)

Definition at line 365 of file options.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