def test_AA03(self): web = Server("Web Server") web.providesIntegrity = False web.authenticatesSource = False web.usesStrongSessionIdentifiers = False threat = threats["AA03"] self.assertTrue(threat.apply(web))
def test_AA03(self): web = Server("Web Server") web.providesIntegrity = False web.authenticatesSource = False web.usesStrongSessionIdentifiers = False ThreatObj = Threat( next(item for item in threats_json if item["SID"] == "AA03")) self.assertTrue(ThreatObj.apply(web))
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))