def test_unicodeDomain(self):
        """
        L{srvconnect.SRVConnector} automatically encodes unicode domain using
        C{idna} encoding.
        """
        self.connector = srvconnect.SRVConnector(
            self.reactor, 'xmpp-client', u'\u00e9chec.example.org',
            self.factory)
        self.assertEqual('xn--chec-9oa.example.org', self.connector.domain)

        L{srvconnect.SRVConnector} automatically encodes unicode domain using
        C{idna} encoding.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_srvconnect.py