def test_deprecatedReplacement(self):
        version = Version('Twisted', 8, 0, 0)
        dummy = deprecated(version, "something.foobar")(dummyCallable)
        self.assertEqual(dummy.__doc__,
            "\n"
            "    Do nothing.\n\n"
            "    This is used to test the deprecation decorators.\n\n"
            "    Deprecated in Twisted 8.0.0; please use "
            "something.foobar"
            " instead.\n"
            "    ")
Main process loop
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_deprecate.py/TestDeprecationWarnings.test_deprecatedReplacement--crossover with--dataset/ETHPy150Open openstack/bandit/bandit/core/node_visitor.py/BanditNodeVisitor.process