assert_called_with(*args, **kwargs)
This method is a convenient way of asserting that calls are made in a particular way:
>>> mock = Mock() >>> mock.method(1, 2, 3, test='wow') <Mock name='mock.method()' id='...'> >>> mock.method.assert_called_with(1, 2, 3, test='wow')
Please login to continue.