#NEWLINE# @ attr ( user = 'group' ) #NEWLINE# def test_1_GET_users_id_relationships_follower_by_group_id( self ) : #NEWLINE# #INDENT# "GET /users/<id>/relationships/@follower/@by-group/<id>.json (group)\n\n        Tests the endpoint for selecting the user's followers within a group.\n        " #NEWLINE# member_id = self . testdata [ 'member' ] [ 'xid' ] #NEWLINE# admin_id = self . testdata [ 'admin' ] [ 'xid' ] #NEWLINE# group_id = group_id . testdata [ 'group' ] [ 'xid' ] #NEWLINE# typepad . client . batch_request ( ) #NEWLINE# user = typepad . User . get_by_url_id ( member_id ) #NEWLINE# listset = self . filterEndpoint ( user . relationships , follower = True , by_group = group_id ) #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 ( contact ) #NEWLINE# #UNINDENT# self . assert_ ( ( admin_id in [ x . source . url_id for x in contacts ] ) ) #NEWLINE# self . assert_ ( ( member_id in [ x . target . url_id for x in contacts ] ) )