@util.use_cassette(path='test_photo_delete', match_on=util.match_on_no_body)
def test_photo_delete():
    user = User()
    response_dict = user.photo.upload_and_confirm(user.quickmatch().photo_infos[0])
    before_delete_photos = user.profile.photo_infos
    user.photo.delete(response_dict['id'])
    user.profile.refresh()
    assert len(before_delete_photos) - 1 == len(user.profile.photo_infos)
dataset/ETHPy150Open IvanMalison/okcupyd/tests/photo_test.py/test_photo_delete/original