|
|
|
|
|
__init__(self,
returnValues=None,
realClass=None)
The Mock class constructor takes a dictionary of method names and
the values they return. |
source code
|
|
|
|
_checkInterfaceCall(self,
name,
callParams,
callKwParams)
Check that a call to a method of the given name to the original
class with the given parameters would not fail. |
source code
|
|
|
|
|
|
|
getAllCalls(self)
Return a list of MockCall objects,
representing all the methods in the order they were called. |
source code
|
|
|
|
getNamedCalls(self,
methodName)
Return a list of MockCall objects,
representing all the calls to the named method in the order they were called. |
source code
|
|
|
|
|
|
|
mockCheckCall(self,
index,
name,
*args,
**kwargs)
test that the index-th call had the specified name and parameters |
source code
|
|
|
|
|
|
|
mockGetNamedCalls(self,
methodName)
Return a list of MockCall objects,
representing all the calls to the named method in the order they were called. |
source code
|
|
|
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|