def test_AC21(self): process1 = Process("Process") process1.implementsCSRFToken = False process1.verifySessionIdentifiers = False ThreatObj = Threat( next(item for item in threats_json if item["SID"] == "AC21")) self.assertTrue(ThreatObj.apply(process1))
def test_AC21(self): process1 = Process("Process") process1.implementsCSRFToken = False process1.verifySessionIdentifiers = False threat = threats["AC21"] self.assertTrue(threat.apply(process1))