def test_endsInNewline(self):
        s = 'newline\n'
        m = text.endsInNewline(s)
        self.assertTrue(m)

        s = 'oldline'
        m = text.endsInNewline(s)
        self.assertFalse(m)
L{text.endsInNewline} returns C{True} if the string ends in a newline.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_text.py/LineTest.test_endsInNewline