'Check that L{app.AppProfiler} raises L{SystemExit} when given an
unknown profiler name.'

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')
