Exemplo n.º 1
0
 def test_SC01(self):
     process1 = Process("Process1")
     process1.implementsNonce = False
     process1.data = 'JSON'
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "SC01"))
     self.assertTrue(ThreatObj.apply(process1))
Exemplo n.º 2
0
 def test_SC01(self):
     process1 = Process("Process1")
     process1.implementsNonce = False
     json = Data(name="JSON", description="some JSON data", format="JSON")
     process1.data = json
     threat = threats["SC01"]
     self.assertTrue(threat.apply(process1))
Exemplo n.º 3
0
 def test_SC01(self):
     process1 = Process("Process1")
     process1.implementsNonce = False
     process1.data = "JSON"
     threat = threats["SC01"]
     self.assertTrue(threat.apply(process1))