| 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='', |