Example #1
0
 def test_get_title(self):
     xml = u"""
         <PART>
             <HD>regulation title</HD>
         </PART>"""
     title = reg_text.get_title(etree.fromstring(xml))
     self.assertEqual(u'regulation title', title)
 def test_get_title(self):
     xml = u"""
         <PART>
             <HD>regulation title</HD>
         </PART>"""
     title = reg_text.get_title(etree.fromstring(xml))
     self.assertEqual(u'regulation title', title)
 def test_get_title(self):
     with XMLBuilder("PART") as ctx:
         ctx.HD("regulation title")
     title = reg_text.get_title(ctx.xml)
     self.assertEqual(u'regulation title', title)
Example #4
0
 def test_get_title(self):
     with XMLBuilder("PART") as ctx:
         ctx.HD("regulation title")
     title = reg_text.get_title(ctx.xml)
     self.assertEqual(u'regulation title', title)
 def test_get_title(self):
     with self.tree.builder("PART") as root:
         root.HD("regulation title")
     title = reg_text.get_title(self.tree.render_xml())
     self.assertEqual(u'regulation title', title)