예제 #1
0
 def test_HA04(self):
     EE = ExternalEntity("ee")
     EE.hasPhysicalAccess = True
     threat = threats["HA04"]
     self.assertTrue(threat.apply(EE))
예제 #2
0
 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))