def test_reportProfileDeprecation(self):
        config = twistd.ServerOptions()
        self.assertWarns(
            DeprecationWarning, "--report-profile option is deprecated and "
            "a no-op since Twisted 8.0.", app.__file__,
            config.parseOptions, ["--report-profile", "foo"])
Check that the --report-profile option prints a C{DeprecationWarning}.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_twistd.py/ServerOptionsTest.test_reportProfileDeprecation