@raises(PermissionDenied)
    def test_check_not_own_object(self):
        img = ImageFactory()
        # This should raise
        check_media_permissions(img, self.user, 'delete')
Apply a CaseActionIntent object to the case.
dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/tests/test_utils.py/CheckPermissionsTestCase.test_check_not_own_object--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/casedb_base.py/AbstractCaseDbCache.apply_action_intents