Module pmock :: Class InvocationMockerBuilder
[show private | hide private]
[frames | no frames]

Class InvocationMockerBuilder

object --+
         |
        InvocationMockerBuilder


Method Summary
  __init__(self, mocker, builder_namespace)
  __call__(self, *arg_constraints, **kwarg_constraints)
  __getattr__(self, name)
Define method name directly.
  after(self, id_str, other_mock)
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's after method.
  match(self, matcher)
  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.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Method Details

__getattr__(self, name)
(Qualification operator)

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's after 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.

Generated by Epydoc 2.0 on Sun Jul 25 19:39:43 2004 http://epydoc.sf.net