def test_isMultiline(self):
        """
        L{text.isMultiline} returns C{True} if the string has a newline in it.
        """
        s = 'This code\n "breaks."'
        m = text.isMultiline(s)
        self.assertTrue(m)

        s = 'This code does not "break."'
        m = text.isMultiline(s)
        self.assertFalse(m)

        L{text.isMultiline} returns C{True} if the string has a newline in it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_text.py