| 1 |
.. module:: mockito |
| 2 |
|
| 3 |
|
| 4 |
The functions |
| 5 |
============= |
| 6 |
|
| 7 |
Stable entrypoints are: :func:`when`, :func:`mock`, :func:`unstub`, :func:`verify`, :func:`spy`. Experimental or new function introduces with v1.0.x are: :func:`when2`, :func:`expect`, :func:`verifyNoUnwantedInteractions`, :func:`verifyStubbedInvocationsAreUsed`, :func:`patch` |
| 8 |
|
| 9 |
.. autofunction:: when |
| 10 |
.. autofunction:: when2 |
| 11 |
.. autofunction:: patch |
| 12 |
.. autofunction:: expect |
| 13 |
.. autofunction:: mock |
| 14 |
.. autofunction:: unstub |
| 15 |
.. autofunction:: forget_invocations |
| 16 |
.. autofunction:: spy |
| 17 |
.. autofunction:: spy2 |
| 18 |
|
| 19 |
This looks like a plethora of verification functions, and especially since you often don't need to `verify` at all. |
| 20 |
|
| 21 |
.. autofunction:: verify |
| 22 |
.. autofunction:: verifyNoMoreInteractions |
| 23 |
.. autofunction:: verifyZeroInteractions |
| 24 |
.. autofunction:: verifyNoUnwantedInteractions |
| 25 |
.. autofunction:: verifyStubbedInvocationsAreUsed |
| 26 |
|
| 27 |
|