def mock(url=None, **kw):
return _engine.mock(url, **kw)<EOL>
Creates and register a new HTTP mock.

Arguments:
    url (str): request URL to mock.
    activate (bool): force mock engine activation.
        Defaults to ``False``.
    **kw (mixed): variadic keyword arguments.

Returns:
    pook.Mock: mock instance