#NEWLINE# def test_it_replaces_private_permissions_with_shared_False( self , authn_policy ) : #NEWLINE# #INDENT# authn_policy . authenticated_userid . return_value = 'acct:harriet@example.com' #NEWLINE# schema = schemas . AnnotationSchema ( testing . DummyRequest ( ) ) #NEWLINE# result = schema . validate ( annotation_data ( permissions = { #NEWLINE# #INDENT# 'read' : [ 'acct:harriet@example.com' ] , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert ( result [ 'shared' ] is False ) #NEWLINE# assert ( 'permissions' not in schema )