Source code for pook.matchers.body

from .base import BaseMatcher


[docs] class BodyMatcher(BaseMatcher): """ BodyMatchers matches the request body via strict value comparison or regular expression based matching. """
[docs] @BaseMatcher.matcher def match(self, req): return self.compare(self.expectation, req.body)