def test_hostFromNonSSLTransport(self):
        x = self.assertRaises(CertificateError,
                              sslverify.Certificate.hostFromTransport,
                              _NotSSLTransport())
        self.failUnless(str(x).startswith("non-TLS"))
Verify that hostFromTransport raises an exception if the transport
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_sslverify.py/Constructors.test_hostFromNonSSLTransport