@raises(PermissionDenied)
    def test_check_not_own_object(self):
        img = ImageFactory()
        # This should raise
        check_media_permissions(img, self.user, 'delete')
tagger cannot delete an image s/he doesn't own.
dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/tests/test_utils.py/CheckPermissionsTestCase.test_check_not_own_object