MCPcopy
hub / github.com/apache/caldera / test_store_existing

Method test_store_existing

tests/objects/test_adversary.py:25–32  ·  view source on GitHub ↗
(self, unrepeatable_ability, repeatable_ability)

Source from the content-addressed store, hash-verified

23 assert ram == dict(adversaries=[test_adversary])
24
25 def test_store_existing(self, unrepeatable_ability, repeatable_ability):
26 test_adversary = Adversary(adversary_id='123', name='test', description='',
27 atomic_ordering=['123'])
28 ram = dict(adversaries=[test_adversary], abilities=[unrepeatable_ability, repeatable_ability])
29 test_adversary.atomic_ordering = ['456']
30 test_adversary.store(ram)
31 assert ram['adversaries'][0].has_repeatable_abilities
32 assert ram['adversaries'][0].atomic_ordering[0] == '456'
33
34 def test_check_repeatable_abilities(self, repeatable_ability):
35 test_adversary = Adversary(adversary_id='123', name='test', description='',

Callers

nothing calls this directly

Calls 2

storeMethod · 0.95
AdversaryClass · 0.90

Tested by

no test coverage detected