def test_AA02(self): web = Server("Web Server") process1 = Process("process") web.authenticatesSource = False process1.authenticatesSource = False threat = threats["AA02"] self.assertTrue(threat.apply(web)) self.assertTrue(threat.apply(process1))
def test_AA02(self): web = Server("Web Server") process1 = Process("process") web.authenticatesSource = False process1.authenticatesSource = False ThreatObj = Threat(next(item for item in threats_json if item["SID"] == "AA02")) self.assertTrue(ThreatObj.apply(web)) self.assertTrue(ThreatObj.apply(process1))