src/pook/matchers/path.py

Summary

Maintainability
A
0 mins
Test Coverage
from .base import BaseMatcher


class PathMatcher(BaseMatcher):
    """
    PathMatcher implements an URL path matcher.
    """

    @BaseMatcher.matcher
    def match(self, req):
        return self.compare(self.expectation, req.url.path)