MCPcopy Index your code
hub / github.com/apache/caldera / test_ran_ability_id

Method test_ran_ability_id

tests/objects/test_operation.py:208–212  ·  view source on GitHub ↗
(self, ability, adversary)

Source from the content-addressed store, hash-verified

206
207class TestOperation:
208 def test_ran_ability_id(self, ability, adversary):
209 op = Operation(name='test', agents=[], adversary=adversary)
210 mock_link = MagicMock(spec=Link, ability=ability(ability_id='123'), finish=MOCK_LINK_FINISH_TIME)
211 op.chain = [mock_link]
212 assert op.ran_ability_id('123')
213
214 def test_event_logs(self, event_loop, op_for_event_logs, operation_agent, file_svc, data_svc, event_log_op_start_time,
215 op_agent_creation_time, fire_event_mock):

Callers

nothing calls this directly

Calls 3

ran_ability_idMethod · 0.95
OperationClass · 0.90
abilityFunction · 0.85

Tested by

no test coverage detected