/usr/lib/python2.7/dist-packages/betamax/matchers/method.py is in python-betamax 0.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | # -*- coding: utf-8 -*-
from .base import BaseMatcher
class MethodMatcher(BaseMatcher):
# Matches based on the method of the request
name = 'method'
def match(self, request, recorded_request):
return request.method == recorded_request['method']
|