Beispiel #1
0
 def testExpandFromTreeWithEntitiesEnabled(self):
     p = ParagraphNode()
     tn = TextNode()
     tn.content = '<b>not bold</b>'
     p.children.append(tn)
     self.assertEquals(expand(p, 'docbook5', node_map), '<para>&lt;b&gt;not bold&lt;/b&gt;</para>')
Beispiel #2
0
 def testExpandFromTree(self):
     p = ParagraphNode()
     tn = TextNode()
     tn.content = 'content'
     p.children.append(tn)
     self.assertEquals(expand(p, 'docbook5', node_map), '<para>content</para>')