def _can_parse(self, content_type):
        content_type, content_subtype, content_param = utils.parse_media_type(content_type)
        for accepted in self.headers.get('Accept', self.DEFAULT_CONTENT_TYPE).split(','):
            type, subtype, param = utils.parse_media_type(accepted)
            # if either accepted_type or content_type do not
            # contain a parameter section, then it will be
            # optimistically ignored
            matched = (type == content_type) \
                      and (subtype == content_subtype) \
                      and (param == content_param or not (param and content_param))
            if matched:
                return True
        return False
Construct a fake request
dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/HALNavigatorBase._can_parse--crossover with--dataset/ETHPy150Open mathcamp/pypicloud/tests/test_simple.py/PackageReadTestBase.get_request