Пример #1
0
 def test_get_bookmark_end_list(self):
     body = self.body
     bookmark_end = odf_create_bookmark_end(u"你好 Zoé")
     body.append_element(bookmark_end)
     get = body.get_bookmark_end_list()[0]
     expected = '<text:bookmark-end text:name="%s"/>' % convert_unicode(u"你好 Zoé")
     self.assertEqual(get.serialize(), expected)
Пример #2
0
 def test_get_bookmark_end(self):
     body = self.body
     bookmark_end = odf_create_bookmark_end(u'你好 Zoé')
     body.append(bookmark_end)
     get = body.get_bookmark_end(name=u'你好 Zoé')
     expected = ('<text:bookmark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
Пример #3
0
 def test_get_bookmark_end(self):
     body = self.body
     bookmark_end = odf_create_bookmark_end(u'你好 Zoé')
     body.append(bookmark_end)
     get = body.get_bookmark_end(name=u'你好 Zoé')
     expected = ('<text:bookmark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
Пример #4
0
 def test_get_bookmark_end_list(self):
     body = self.body
     bookmark_end = odf_create_bookmark_end(u'你好 Zoé')
     para = self.body.get_paragraph()
     para.append(bookmark_end)
     get = body.get_bookmark_ends()[0]
     expected = ('<text:bookmark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
Пример #5
0
 def test_get_bookmark_end_list(self):
     body = self.body
     bookmark_end = odf_create_bookmark_end(u'你好 Zoé')
     para = self.body.get_paragraph()
     para.append(bookmark_end)
     get = body.get_bookmark_ends()[0]
     expected = ('<text:bookmark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
Пример #6
0
 def test_create_bookmark_end(self):
     bookmark_end = odf_create_bookmark_end(u"你好 Zoé")
     expected = '<text:bookmark-end text:name="%s"/>' % convert_unicode(u"你好 Zoé")
     self.assertEqual(bookmark_end.serialize(), expected)
Пример #7
0
 def test_create_bookmark_end(self):
     bookmark_end = odf_create_bookmark_end(u'你好 Zoé')
     expected = ('<text:bookmark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(bookmark_end.serialize(), expected)