def testRemovePhotosAccess(self):
    ep_id, ph_ids = self._UploadOneEpisode(self._cookie, 1)
    self.assertRaisesHttpError(403, self._OldRemovePhotos, self._cookie2, [(ep_id, ph_ids)])

    vp_id, new_ep_ids = self._tester.ShareNew(self._cookie,
                                              [(ep_id, ph_ids)],
                                              [self._user2.user_id])
    self.assertRaisesHttpError(403, self._OldRemovePhotos, self._cookie3, [(new_ep_ids[0], ph_ids)])
ERROR: Ensure that only photos visible to the user can be removed.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/old_remove_photos_test.py/OldRemovePhotosTestCase.testRemovePhotosAccess