Beispiel #1
0
 def test_plaintext(self):
     s = Spaces(count=3)
     self.assertEqual(s.plaintext(), '   ')
     self.assertEqual(str(s), '   ')
Beispiel #2
0
 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)
Beispiel #3
0
 def test_textlen(self):
     s = Spaces(count=3)
     self.assertEqual(s.textlen, 3)
Beispiel #4
0
 def test_plaintext(self):
     s = Spaces(count=3)
     self.assertEqual(s.plaintext(), '   ')
     self.assertEqual(str(s), '   ')
Beispiel #5
0
 def test_get_count(self):
     s = Spaces(count=3)
     self.assertEqual(s.count, 3)