Home | Trees | Index | Help |
|
---|
Module pmock :: Class InvocationMockerBuilder |
|
object
--+
|
InvocationMockerBuilder
Method Summary | |
---|---|
__init__(self,
mocker,
builder_namespace)
| |
__call__(self,
*arg_constraints,
**kwarg_constraints)
| |
Define method name directly. | |
Expected to be called after the method with supplied id. | |
Method takes any arguments. | |
Define a id for use in other mock's after method. | |
match(self,
matcher)
| |
Define method name. | |
Method takes no arguments. | |
Set stub when method is called. | |
Fully specify the method's arguments. | |
Specify the method's minimum required arguments. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Method Details |
---|
__getattr__(self,
name)
Define method name directly.
|
after(self, id_str, other_mock=None)Expected to be called after the method with supplied id. |
any_args(self)Method takes any arguments. |
id(self, id_str)Define a id for use in other mock'safter method.
|
method(self, name)Define method name. |
no_args(self)Method takes no arguments. |
will(self, stub)Set stub when method is called. |
with(self, *arg_constraints, **kwarg_constraints)Fully specify the method's arguments. |
with_at_least(self, *arg_constraints, **kwarg_constraints)Specify the method's minimum required arguments. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sun Jul 25 19:39:43 2004 | http://epydoc.sf.net |