def assert_called_with(_mock_self, *args, **kwargs):
self = _mock_self<EOL>if self.call_args is None:<EOL><INDENT>expected = self._format_mock_call_signature(args, kwargs)<EOL>raise AssertionError('<STR_LIT>' % (expected,))<EOL><DEDENT>if self.call_args != (args, kwargs):<EOL><INDENT>msg = self._format_mock_failure_message(args, kwargs)<EOL>raise AssertionError(msg)<EOL><DEDENT>
assert that the mock was called with the specified arguments.

        Raises an AssertionError if the args and keyword args passed in are
        different to the last call to the mock.