def test_writeLines(self):
        """
        Writing lines to a StdioOnnaStick results in Twisted log messages.
        """
        stdio = log.StdioOnnaStick()
        stdio.writelines(["log 1", "log 2"])
        self.assertEqual(self.getLogMessages(), ["log 1", "log 2"])

        Writing lines to a StdioOnnaStick results in Twisted log messages.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_log.py