コード例 #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
ファイル: test_bookmark.py プロジェクト: mfe/lpod-python
 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
ファイル: test_bookmark.py プロジェクト: RB14/lpod-python
 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)