def test_deprecated(self):
        """
        L{twisted.web.client.WebClientContextFactory} is deprecated.  Importing
        it displays a warning.
        """
        self.assertEqual(len(self.warned), 1)
        [warning] = self.warned
        self.assertEqual(warning['category'], DeprecationWarning)
        self.assertEqual(
            warning['message'],
            getDeprecationWarningString(
                self.webClientContextFactory, Version("Twisted", 14, 0, 0),
                replacement=BrowserLikePolicyForHTTPS,
            )

            # See https://twistedmatrix.com/trac/ticket/7242
            .replace(";", ":")
        )

        L{twisted.web.client.WebClientContextFactory} is deprecated.  Importing
        it displays a warning.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py