def test_access_control_with_non_existent_role(self):
    with self.assertRaises(AirflowException) as context:
        self.security_manager.sync_perm_for_dag(dag_id='access-control-test', access_control={'this-role-does-not-exist': [permissions.ACTION_CAN_EDIT, permissions.ACTION_CAN_READ]})
    self.assertIn('role does not exist', str(context.exception))
def test_access_control_with_non_existent_role(self):
    with self.assertRaises(AirflowException) as context:
        self.security_manager.sync_perm_for_dag(dag_id='access-control-test', access_control={'this-role-does-not-exist': [permissions.ACTION_CAN_EDIT, permissions.ACTION_CAN_READ]})
    self.assertIn('role does not exist', str(context.exception))