예제 #1
0
 def test_INP20(self):
     process1 = Process("process")
     process1.disablesiFrames = False
     threat = threats["INP20"]
     self.assertTrue(threat.apply(process1))
예제 #2
0
 def test_INP20(self):
     process1 = Process("process")
     process1.disablesiFrames = False
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "INP20"))
     self.assertTrue(ThreatObj.apply(process1))