def test_plainttext_with_two_paragraphs_as_header(self): item = ListItem('paragraph1') item += Paragraph('paragraph2') self.assertEqual('paragraph1\nparagraph2', item.plaintext(), "wrong item content")
def test_constructor(self): item = ListItem('text') self.assertEqual('text', item.plaintext(), "wrong item content")