#NEWLINE# def test_group_member_removal_updates_user_principals( self ) : #NEWLINE# #INDENT# self . create_group ( 'beers' , 'moderators' , [ 'natim' , 'mat' ] ) #NEWLINE# group_url = '/buckets/beers/groups/moderators' #NEWLINE# group = { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'members' : [ 'mat' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . app . put_json ( group_url , group , headers = self . headers , status = 200 ) #NEWLINE# self . app . get ( '/buckets/beers/groups' , headers = self . headers , status = 200 ) #NEWLINE# self . assertEquals ( self . permission . user_principals ( 'natim' ) , set ( ) ) #NEWLINE# self . assertEquals ( self . permission . user_principals ( 'mat' ) , { group_url } )