'L{text.endsInNewline} returns C{True} if the string ends in a newline.'

def test_endsInNewline(self):

    s = 'newline\n'
    m = text.endsInNewline(s)
    self.assertTrue(m)
    s = 'oldline'
    m = text.endsInNewline(s)
    self.assertFalse(m)
