コード例 #1
0
ファイル: test_pytmfunc.py プロジェクト: chadeckles/pytm
 def test_INP07(self):
     process1 = Process("Process1")
     process1.usesSecureFunctions = False
     threat = threats["INP07"]
     self.assertTrue(threat.apply(process1))
コード例 #2
0
ファイル: test_pytmfunc.py プロジェクト: Blue-infosec/pytm
 def test_INP07(self):
     process1 = Process("Process1")
     process1.usesSecureFunctions = False
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "INP07"))
     self.assertTrue(ThreatObj.apply(process1))