def test_03_branch_rate(self): with tracing_import('./code/if_true_else', db=self.db) as module: pass xml = get_stats_xml(db=self.db, whitelist=[re.compile('.*')], blacklist=[]) tree = etree.XML(xml) for i in tree.xpath('//class'): branch_rate = i.xpath("./@branch-rate")[0] self.assertXMLBranchRate(branch_rate)
def test_01_filename(self): with tracing_import('./code/if_true_else', db=self.db) as module: pass xml = get_stats_xml(db=self.db, whitelist=[re.compile('.*')], blacklist=[]) tree = etree.XML(xml) for i in tree.xpath('//class'): filename = i.xpath("./@filename")[0] self.assertResultFileName(filename)