def test_get_reference_mark_end(self):
     body = self.body
     reference_mark_end = odf_create_reference_mark_end(u'你好 Zoé')
     body.append_element(reference_mark_end)
     get = body.get_reference_mark_end_by_name(u'你好 Zoé')
     expected = ('<text:reference-mark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
Example #2
0
 def test_get_reference_mark_end(self):
     body = self.body
     reference_mark_end = odf_create_reference_mark_end(u'你好 Zoé')
     body.append(reference_mark_end)
     get = body.get_reference_mark_end(name=u'你好 Zoé')
     expected = ('<text:reference-mark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
Example #3
0
 def test_get_reference_mark_end(self):
     body = self.body
     para = body.get_paragraph()
     reference_mark_end = odf_create_reference_mark_end(u'你好 Zoé')
     para.append(reference_mark_end)
     get = body.get_reference_mark_end(name=u'你好 Zoé')
     expected = ('<text:reference-mark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(get.serialize(), expected)
 def test_create_reference_mark_end(self):
     reference_mark_end = odf_create_reference_mark_end('你好 Zoé')
     expected = ('<text:reference-mark-end text:name="%s"/>' %
                 convert_unicode('你好 Zoé'))
     self.assertEqual(reference_mark_end.serialize(), expected)
Example #5
0
 def test_create_reference_mark_end(self):
     reference_mark_end = odf_create_reference_mark_end(u'你好 Zoé')
     expected = ('<text:reference-mark-end text:name="%s"/>' %
                 convert_unicode(u'你好 Zoé'))
     self.assertEqual(reference_mark_end.serialize(), expected)