def test_unknownProfiler(self):
        config = twistd.ServerOptions()
        config["profile"] = self.mktemp()
        config["profiler"] = "foobar"

        error = self.assertRaises(SystemExit, app.AppProfiler, config)
        self.assertEqual(str(error), "Unsupported profiler name: foobar")
Unregister legacy authentication handlers after successfull
dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/AppProfilingTests.test_unknownProfiler--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/pyxmpp2/ext/legacyauth.py/LegacyClientStream._post_auth