def test_formatNamespace(self):
        """
        Namespace is first part of second field.
        """
        event = dict(log_format=u"XYZZY", log_namespace="my.namespace")
        self.assertEqual(
            formatEventAsClassicLogText(event),
            u"- [my.namespace\x23-] XYZZY\n",
        )

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