code: def matches(self, request):
          
          return (
              partial_path_match(request.path_info, self.path) and
              request.method == self.method
          )
docs: :param request: a :class:`pyramid.request.Request`
          :returns: True if this matcher matches the request, False otherwise