def test_callDeprecatedSuppressesWarning(self):
        """
        callDeprecated calls a deprecated callable, suppressing the
        deprecation warning.
        """
        self.callDeprecated(self.version, oldMethod, 'foo')
        self.assertEqual(
            self.flushWarnings(), [], "No warnings should be shown")

        callDeprecated calls a deprecated callable, suppressing the
        deprecation warning.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_assertions.py