'Test if a rule would match.  Works like `match` but returns `True`
if the URL matches, or `False` if it does not exist.
:param path_info: the path info to use for matching.  Overrides the
path info specified on binding.
:param method: the HTTP method used for matching.  Overrides the
method specified on binding.'

def test(self, path_info=None, method=None):

    try:
        self.match(path_info, method)
    except RequestRedirect:
        pass
    except HTTPException:
        return False
    return True
