def dump_xml(self, output_dir):
        """
        Dumps test result to xml
        """
        if not os.path.exists(output_dir):
            os.makedirs(output_dir)

        output = ET.ElementTree(self.tree)
        output.write(os.path.join(output_dir, 'junit.xml'), encoding="utf-8")
def dump_xml ( self , output_dir ) : if not os . path . exists ( output_dir ) : os . makedirs ( output_dir ) output = ET . ElementTree ( self . tree ) output . write ( os . path . join ( output_dir , 'junit.xml' ) , encoding = "utf-8" )
Dumps test result to xml