def test_plaintext(self): t = LineBreak() self.assertEqual(t.plaintext(), '\n') self.assertEqual(str(t), '\n')
def test_init_XML(self): t = LineBreak(xmlnode=etree.XML( '<text:line-break xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"/>' )) self.assertEqual(t.xmlnode.tag, CN('text:line-break'))
def test_textlen(self): t = LineBreak() self.assertEqual(t.textlen, 1)
def test_init(self): t = LineBreak() self.assertEqual(t.TAG, CN('text:line-break')) self.assertEqual(t.xmlnode.tag, CN('text:line-break'))