from .base import BaseMatcher [docs] class PathMatcher(BaseMatcher): """ PathMatcher implements an URL path matcher. """ [docs] @BaseMatcher.matcher def match(self, req): return self.compare(self.expectation, req.url.path)