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())
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() )
def __render_template(self, template_path): # try to parse a file by our parser parse_dynamic_content_xml(template_path, {})
def __render_template(self, template_path): # try to parse a file by our parser parse_dynamic_content_xml( template_path, {} )