pook/mock.py
def url(self, url):
        """
        Defines the mock URL to match.
        It can be a full URL with path and query params.

        Protocol schema is optional, defaults to ``http://``.

        Arguments:
            url (str): mock URL to match. E.g: ``server.com/api``.

        Returns:
            self: current Mock instance.
        """
        self._request.url = url
        self.add_matcher(matcher('URLMatcher', url))
def url(self, url):
        self._request.url = url
        self.add_matcher(matcher('URLMatcher', url))
def url ( self , url ) : self . _request . url = url self . add_matcher ( matcher ( 'URLMatcher' , url ) )
Defines the mock URL to match.
        It can be a full URL with path and query params.

        Protocol schema is optional, defaults to ``http://``.

        Arguments:
            url (str): mock URL to match. E.g: ``server.com/api``.

        Returns:
            self: current Mock instance.
Defines the mock URL to match . It can be a full URL with path and query params .