def test_formatLevel(self):
        """
        Level is second part of second field.
        """
        event = dict(log_format=u"XYZZY", log_level=LogLevel.warn)
        self.assertEqual(
            formatEventAsClassicLogText(event),
            u"- [-\x23warn] XYZZY\n",
        )

        Level is second part of second field.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/logger/test/test_format.py