Public Member Functions | |
def | __delattr__ |
def | __getattr__ |
def | __init__ |
def | __setattr__ |
`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.
def tornado.options._Mockable.__init__ | ( | self, | |
options | |||
) |
Definition at line 357 of file options.py.
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.