def verify(self, pattern):
        """
        https://tools.ietf.org/search/rfc6125#section-6.4
        """
        if isinstance(pattern, self.pattern_class):
            return _hostname_matches(pattern.pattern, self.hostname)
        else:
            return False

        https://tools.ietf.org/search/rfc6125#section-6.4
        
stackoverflow/venv/lib/python3.6/site-packages/service_identity/_common.py