def setUp(self):
        """
        Get WebClientContextFactory while quashing its deprecation warning.
        """
        from twisted.web.client import WebClientContextFactory
        self.warned = self.flushWarnings([WebClientContextFactoryTests.setUp])
        self.webClientContextFactory = WebClientContextFactory

        Get WebClientContextFactory while quashing its deprecation warning.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py