def testRemoveFollower(self):
    # ------------------------------
    # Remove another user.
    # ------------------------------
    self._tester.RemoveFollowers(self._cookie, self._vp_id, [self._user2.user_id])
    response_dict = self._tester.QueryFollowed(self._cookie2)
    vp_dict = util.GetSingleListItem([vp_dict for vp_dict in response_dict['viewpoints']
                                      if vp_dict['viewpoint_id'] == self._vp_id])
    self.assertIn('removed', vp_dict['labels'])
    self.assertIn('unrevivable', vp_dict['labels'])

    # ------------------------------
    # Remove self.
    # ------------------------------
    self._tester.RemoveFollowers(self._cookie, self._vp_id, [self._user.user_id])
    response_dict = self._tester.QueryFollowed(self._cookie)
    vp_dict = util.GetSingleListItem([vp_dict for vp_dict in response_dict['viewpoints']
                                      if vp_dict['viewpoint_id'] == self._vp_id])
    self.assertIn('removed', vp_dict['labels'])
    self.assertIn('unrevivable', vp_dict['labels'])
Remove single follower from viewpoint.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/remove_followers_test.py/RemoveFollowersTestCase.testRemoveFollower