Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)
An SRV service ID.

src/s/e/service_identity-0.2/tests/test_common.py   service_identity(Download)
import service_identity._common
 
from service_identity._common import (
    CertificateError,
    DNSMismatchError,
        """
        p = SRVPattern(b"_mail.example.net")
        i = SRV_ID(u("_mail.example.net"))
        rv = verify_service_identity(
            [DNSPattern(b"example.net"), p],
    def test_create_DNS_ID(self):
        """
        The hostname is converted into a DNS_ID object.
        """
        srv_id = SRV_ID(u("_mail.example.com"))
        case-insensitively.
        """
        srv_id = SRV_ID(u("_MaIl.foo.com"))
        self.assertEqual(b"mail", srv_id.name)