def testBlockedFriendship(self):
    self._UpdateOrAllocateDBObject(Friend,
                                   user_id=self._andy_user.user_id,
                                   friend_id=self._user.user_id,
                                   status=Friend.BLOCKED)

    response_dict = self._tester.QueryUsers(self._cookie, [self._andy_user.user_id])
    self.assertIn('name', response_dict['users'][0])
Take the nth row from each group if n is an int, or a subset of rows
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/query_users_test.py/QueryUsersTestCase.testBlockedFriendship--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/groupby.py/GroupBy.nth