'Function for creating friend connections for a test user.'

def create_friend_connections(self, user, friends):

    user_graph = facebook.GraphAPI(user['access_token'])
    for friend in friends:
        if (user['id'] == friend['id']):
            continue
        user_graph.request(((user['id'] + '/friends/') + friend['id']), {}, {}, method='POST')
        respondent_graph = facebook.GraphAPI(friend['access_token'])
        respondent_graph.request(((friend['id'] + '/friends/') + user['id']), {}, {}, method='POST')
