#NEWLINE# def test_set_group_permissions_does_not_modify_private_annotations( ) : #NEWLINE# #INDENT# original_annotation = { #NEWLINE# #INDENT# 'user' : 'acct:jack@hypothes.is' , #NEWLINE# 'group' : 'xyzabc' , #NEWLINE# 'permissions' : { #NEWLINE# #INDENT# 'read' : [ 'acct:jack@hypothes.is' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# annotation_to_be_modified = copy . deepcopy ( annotation_to_be_modified ) #NEWLINE# transform . set_group_permissions ( annotation_to_be_modified ) #NEWLINE# assert ( annotation_to_be_modified == original_annotation )