def testOrder(self):
    episode_id, photo_ids = self._UploadOneEpisode(self._cookie, 2)

    # Add 24 hours to timestamp so that viewpoint sorts in next day (viewpoints in the same day
    # have an undefined ordering with respect to each other).
    util._TEST_TIME += constants.SECONDS_PER_DAY
    act_dict = self._tester.CreateActivityDict(self._cookie)
    act_dict['timestamp'] += constants.SECONDS_PER_DAY
    vp_dict = self._CreateViewpointDict(self._cookie)
    self._tester.ShareNew(self._cookie,
                          [(episode_id, photo_ids)],
                          [self._user2.user_id],
                          act_dict=act_dict,
                          **vp_dict)

    response = self._tester.QueryFollowed(self._cookie)

    # Verify that first viewpoint is the newly added viewpoint, and the second is the default viewpoint.
    self.assertEqual(response['viewpoints'][0]['viewpoint_id'], vp_dict['viewpoint_id'])
    self.assertEqual(response['viewpoints'][1]['viewpoint_id'], self._user.private_vp_id)
Validate that the most recently updated viewpoints are first in
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/query_followed_test.py/QueryFollowedTestCase.testOrder