diff --git a/tests/foreman/api/test_permission.py b/tests/foreman/api/test_permission.py index 95929e79e36..a4267d71f92 100644 --- a/tests/foreman/api/test_permission.py +++ b/tests/foreman/api/test_permission.py @@ -374,7 +374,7 @@ def test_positive_check_update(self, entity_cls, class_org, class_location, targ self.give_user_permission(_permission_name(entity_cls, 'update'), target_sat) # update() calls read() under the hood, which triggers # permission error - if entity_cls is target_sat.api.ActivationKey: + if entity_cls is entities.ActivationKey: entity_cls(self.cfg, id=new_entity.id, name=name, organization=class_org).update_json( ['name'] )