コード例 #1
0
ファイル: test_pytmfunc.py プロジェクト: chadeckles/pytm
 def test_HA04(self):
     EE = ExternalEntity("ee")
     EE.hasPhysicalAccess = True
     threat = threats["HA04"]
     self.assertTrue(threat.apply(EE))
コード例 #2
0
ファイル: test_pytmfunc.py プロジェクト: Blue-infosec/pytm
 def test_HA04(self):
     EE = ExternalEntity("ee")
     EE.hasPhysicalAccess = True
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "HA04"))
     self.assertTrue(ThreatObj.apply(EE))