def _match_version_string(self, subject, req):
        match = self.version_uri_regex.match(subject)
        if match:
            major_version, minor_version = match.groups(0)
            major_version = int(major_version)
            minor_version = int(minor_version)
            req.environ['api.major_version'] = major_version
            req.environ['api.minor_version'] = minor_version
        return match is not None
Return a canonical representation of a TestCase for sorting and hashing.
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/api/middleware/version_negotiation.py/VersionNegotiationFilter._match_version_string--crossover with--dataset/ETHPy150Open Yelp/Testify/testify/test_case.py/MetaTestCase._cmp_str