#NEWLINE# @ attr ( user = 'group' ) #NEWLINE# def test_1_GET_users_id_memberships_by_group_id( self ) : #NEWLINE# #INDENT# 'GET /users/<id>/memberships/@by-group/<id>.json (group)\n\n        Tests the endpoint for selecting a group membership for a specific\n        user.\n        ' #NEWLINE# member_id = self . testdata [ 'member' ] [ '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# memberships = user . memberships . filter ( ) #NEWLINE# typepad . client . complete_batch ( ) #NEWLINE# self . assert_ ( ( member_id in [ x . target . url_id for x in memberships ] ) )