def test_get_comments_photo():
  first = first_session_from_homepage()
  photo = get_photos_of(first)
  assert photo.status_code == 200, 'Photos exist'
  photo = photo.json()["photos"][0]
  r = requests.get(sm.route('photos/{}/comments'.format(photo['_id'])), headers=headers)
  assert r.status_code == 200, 'Request succeeded'
  assert r.json() is not None, 'Json result is valid'
def test_remove_frame_from_cart():
    first = first_session_from_homepage()
    photo = get_photos_of(first)
    assert photo.status_code == 200, 'Photos exist'
    photo = photo.json()["photos"][0]
    r = requests.delete(sm.route('carts/frames/{}'.format(photo['_id'])),
                        headers=headers)
    assert r.status_code == 304, 'Request not modified'