#NEWLINE# def test_none_if_annotation_nipsad( self ) : #NEWLINE# #INDENT# "Should return None if the annotation is from a NIPSA'd user." #NEWLINE# message = { #NEWLINE# #INDENT# 'annotation' : { #NEWLINE# #INDENT# 'user' : 'fred' , #NEWLINE# 'nipsa' : True , #NEWLINE# 'permissions' : { #NEWLINE# #INDENT# 'read' : [ 'group:__world__' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# 'action' : 'update' , #NEWLINE# 'src_client_id' : 'pigeon' , #NEWLINE# #UNINDENT# } #NEWLINE# socket = FakeSocket ( 'giraffe' ) #NEWLINE# assert ( messages . handle_annotation_event ( self , socket ) is None )