def test_cloudsploit_parser_with_no_vuln_has_no_findings(self):
     testfile = open(
         "dojo/unittests/scans/cloudsploit/cloudsploit_zero_vul.json")
     parser = CloudsploitParser()
     findings = parser.get_findings(testfile, Test())
     testfile.close()
     self.assertEqual(0, len(findings))
Exemple #2
0
 def test_cloudsploit_parser_with_one_criticle_vuln_has_one_findings(self):
     testfile = open("unittests/scans/cloudsploit/cloudsploit_one_vul.json")
     parser = CloudsploitParser()
     findings = parser.get_findings(testfile, Test())
     testfile.close()
     self.assertEqual(1, len(findings))