#NEWLINE# @ attr ( user = 'group' ) #NEWLINE# def test_1_GET_users_id_memberships_admin( self ) : #NEWLINE# #INDENT# "GET /users/<id>/memberships/@admin.json (group)\n        \n        Tests the endpoint for selecting a user's relationships for groups\n        they administer.\n        " #NEWLINE# admin_id = self . testdata [ 'admin' ] [ 'xid' ] #NEWLINE# group_id = self . testdata [ 'group' ] [ 'xid' ] #NEWLINE# typepad . client . batch_request ( ) #NEWLINE# user = typepad . User . get_by_url_id ( admin_id ) #NEWLINE# listset = self . filterEndpoint ( user . memberships , admin = True ) #NEWLINE# typepad . client . complete_batch ( ) #NEWLINE# memberships = listset [ 0 ] #NEWLINE# self . assert_ ( ( group_id in [ x . source . url_id for x in memberships ] ) )