def test_contextFactoryType(self):
        """
        L{Agent} wraps its connection creator creator and uses modern TLS APIs.
        """
        endpoint = self.makeEndpoint()
        contextFactory = endpoint._wrapperFactory(None)._connectionCreator
        self.assertIsInstance(contextFactory, ClientTLSOptions)
        self.assertEqual(contextFactory._hostname, u"example.com")

        L{Agent} wraps its connection creator creator and uses modern TLS APIs.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py