Test ability.privilege == 'Elevated' and agent.privilege == 'Elevated'
(self, event_loop, data_svc)
| 37 | assert agent.privileged_to_run(ability) |
| 38 | |
| 39 | def test_privileged_to_run__5(self, event_loop, data_svc): |
| 40 | """ Test ability.privilege == 'Elevated' and agent.privilege == 'Elevated' """ |
| 41 | agent = event_loop.run_until_complete(data_svc.store(Agent(sleep_min=1, sleep_max=2, watchdog=0, privilege='Elevated'))) |
| 42 | ability = event_loop.run_until_complete(data_svc.store( |
| 43 | Ability(ability_id='123', privilege='Elevated') |
| 44 | )) |
| 45 | assert agent.privileged_to_run(ability) |
| 46 | |
| 47 | def test_privileged_to_run__6(self, event_loop, data_svc): |
| 48 | """ Test ability.privilege == 'None' and agent.privilege == 'Elevated' """ |
nothing calls this directly
no test coverage detected