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)
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)
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)
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)
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)
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)
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)