def test_findbugs(self): findbugs_analysis = findbugs(self.filepath, self.firehose_results) content = findbugs_analysis[1] self.assertTrue("The following classes needed for analysis" in content) # It think it is safe to say that the string is not 4 chars long self.assertTrue(len(content) > 4)
def test_findbugs(): with cd("tmp"): report = firehose.model.Analysis.from_xml( open("/home/sylvestre/incoming/1.firehose.xml", 'r')) urllib.urlretrieve( "http://snapshot.debian.org/archive/debian/20130527T160533Z/pool/main/libj/libjlatexmath-java/libjlatexmath-fop-java_1.0.2-1_all.deb", "libjlatexmath-fop-java_1.0.2-1_all.deb") assert os.path.isfile("libjlatexmath-fop-java_1.0.2-1_all.deb") analysis = findbugs("libjlatexmath-fop-java_1.0.2-1_all.deb", report)
def test_findbugs(): with cd("tmp"): report = firehose.model.Analysis.from_xml(open("/home/sylvestre/incoming/1.firehose.xml", "r")) urllib.urlretrieve( "http://snapshot.debian.org/archive/debian/20130527T160533Z/pool/main/libj/libjlatexmath-java/libjlatexmath-fop-java_1.0.2-1_all.deb", "libjlatexmath-fop-java_1.0.2-1_all.deb", ) assert os.path.isfile("libjlatexmath-fop-java_1.0.2-1_all.deb") analysis = findbugs("libjlatexmath-fop-java_1.0.2-1_all.deb", report)
def run(dsc, package, job, firehose): return findbugs(dsc, firehose)