def test_plaintext(self): s = Spaces(count=3) self.assertEqual(s.plaintext(), ' ') self.assertEqual(str(s), ' ')
def test_spaces_from_XML(self): s = Spaces(xmlnode=etree.XML( '<text:s xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" text:c="3" />' )) self.assertEqual(s.count, 3)
def test_textlen(self): s = Spaces(count=3) self.assertEqual(s.textlen, 3)
def test_get_count(self): s = Spaces(count=3) self.assertEqual(s.count, 3)