#NEWLINE# @ attr ( user = 'group' ) #NEWLINE# def test_1_GET_users_id_relationships_following( self ) : #NEWLINE# #INDENT# "GET /users/<id>/relationships/@following.json (group)\n        \n        Tests selection of a user's global following list.\n        " #NEWLINE# member_id = self . testdata [ 'member' ] [ 'xid' ] #NEWLINE# admin_id = self . testdata [ 'admin' ] [ 'xid' ] #NEWLINE# typepad . client . batch_request ( ) #NEWLINE# user = typepad . User . get_by_url_id ( member_id ) #NEWLINE# listset = self . filterEndpoint ( user . relationships , following = True ) #NEWLINE# typepad . client . complete_batch ( ) #NEWLINE# self . assertValidUser ( user ) #NEWLINE# self . assertValidFilter ( listset ) #NEWLINE# contacts = listset [ 0 ] #NEWLINE# for contact in contacts : #NEWLINE# #INDENT# self . assertValidRelationship ( user ) #NEWLINE# #UNINDENT# self . assert_ ( ( member_id in [ x . source . url_id for x in contacts ] ) ) #NEWLINE# self . assert_ ( ( admin_id in [ x . target . url_id for x in contacts ] ) )