コード例 #1
0
 def __render_template(self, template_path):
     with open(template_path.replace('.xml', '.expected')) as fp:
         # try to parse a file by our parser
         self.assertEquals(
             etree.tostring(
                 etree.XML(parse_dynamic_content_xml(template_path, {}),
                           parser=parser)),
             fp.read().encode('utf-8').strip())
コード例 #2
0
 def __render_template(self, template_path):
     with open(template_path.replace('.xml', '.expected')) as fp:
         # try to parse a file by our parser
         self.assertEquals(
             etree.tostring(etree.XML(parse_dynamic_content_xml(
                 template_path,
                 {}
             ), parser=parser)),
             fp.read().encode('utf-8').strip()
         )
コード例 #3
0
 def __render_template(self, template_path):
     # try to parse a file by our parser
     parse_dynamic_content_xml(template_path, {})
コード例 #4
0
 def __render_template(self, template_path):
     # try to parse a file by our parser
     parse_dynamic_content_xml(
         template_path,
         {}
     )