matchmock
![Coverage Status](https://img.shields.io/coveralls/keis/matchmock.svg?style=flat)
Hamcrest matchers for mock objects.
Starting from version 2.0.0 python2 is no longer supported the 1.x series
will remain supported but no new features will be added.
Example
f = Mock()
f.method('foo', 'bar')
assert_that(f.method, called_once_with(anything(), 'bar')
Matchers
called
- match mock that was called one or more timesnot_called
- match mock that was never calledcalled_once
- match mock that was called once regardless of argumentscalled_with
- match mock has at least one call with the specified argumentscalled_once_with
- match mock that was called once and with the specified argumentscalled_n_times
- match mock that was called number of times.