def test_dictDeprecation(self):
        """
        L{twisted.protocols.dict} is deprecated since Twisted 17.9.0.
        """
        from twisted.protocols import dict
        dict

        warningsShown = self.flushWarnings([self.test_dictDeprecation])
        self.assertEqual(1, len(warningsShown))
        self.assertEqual(
            ("twisted.protocols.dict was deprecated in Twisted 17.9.0:"
             " There is no replacement for this module."),
            warningsShown[0]['message'])

        L{twisted.protocols.dict} is deprecated since Twisted 17.9.0.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_dict.py