

@raises(PermissionDenied)
def test_check_not_own_object(self):
    "tagger cannot delete an image s/he doesn't own."
    img = ImageFactory()
    check_media_permissions(img, img.user, 'delete')

dataset/ETHPy150Open mozilla/kitsune/kitsune/gallery/tests/test_utils.py CheckPermissionsTestCase.test_check_not_own_object/VarMisuse@28/58 `self`->`img`