2012-11-03 14:32:52 |
Olivier Kozak |
description |
Here is how to reproduce the problem :
>>> from mocki import Mock
>>> mock = Mock('theMock')
>>> mock.method()
>>> mock.otherMethod()
>>> mock.method.verifyCall().invokedInOrder()
Traceback (most recent call last):
...
AssertionError: Found one matching call invoked from theMock.method up to now, but not in order :
[1] theMock.method()
2 theMock.otherMethod() |
Here is how to reproduce the problem :
>>> from mocki import Mock
>>> mock = Mock('theMock')
>>> mock.method()
>>> mock.otherMethod()
>>> mock.method.verifyCall().invokedInOrder()
Traceback (most recent call last):
...
AssertionError: Found one matching call invoked from theMock.method up to now, but not in order :
[1] theMock.method()
2 theMock.otherMethod() |
|