def test_parse_json_file_with_one_target_has_three_vuln_new(self):
     testfile = open(path.join(path.dirname(__file__), "../scans/sslyze/one_target_many_vuln_new.json"))
     parser = SslyzeParser()
     findings = parser.get_findings(testfile, Test())
     self.assertEqual(3, len(findings))
Esempio n. 2
0
 def test_parse_file_with_one_target_has_one_vuln(self):
     testfile = open("dojo/unittests/scans/sslyze/one_target_one_vuln.json")
     parser = SslyzeParser()
     findings = parser.get_findings(testfile, Test())
     self.assertEqual(1, len(findings))
    def test_parse_json_file_with_two_target_has_many_vuln_old(self):
        testfile = open(path.join(path.dirname(__file__), "../scans/sslyze/two_targets_two_vuln_old.json"))
        parser = SslyzeParser()
        findings = parser.get_findings(testfile, Test())

        self.assertEqual(2, len(findings))