StrictOrderMock

Issue #3 wontfix
David Villa Alises created an issue

It is a specialization of Mock that assure expectations order.

See https://bitbucket.org/carlosble/pydoubles/pull-request/9/is-this-an-error-or-a-feature

Comments (5)

  1. David Villa Alises reporter

    Doublex support both with two different matchers for mocks:

    - verify() requires invocation order meets expectations. [1] - any_order_verify() does not requires it. [2]

    [1] https://bitbucket.org/DavidVilla/python-doublex/src/61f898866c0c/test/unit.py#cl-252

    [2] https://bitbucket.org/DavidVilla/python-doublex/src/61f898866c0c/test/unit.py#cl-264

    Implement the same feature with pyDoubles requires API modifications and it will not supported directly. I recommend you to use doublex instead pyDoubles is you need that feature.

  2. Log in to comment