#NEWLINE# def test_none_if_action_is_read( self ) : #NEWLINE# #INDENT# "Should return None if the message action is 'read'." #NEWLINE# message = { #NEWLINE# #INDENT# 'annotation' : { #NEWLINE# #INDENT# 'permissions' : { #NEWLINE# #INDENT# 'read' : [ 'group:__world__' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# 'action' : 'read' , #NEWLINE# 'src_client_id' : 'pigeon' , #NEWLINE# #UNINDENT# } #NEWLINE# socket = FakeSocket ( 'giraffe' ) #NEWLINE# assert ( messages . handle_annotation_event ( message , message ) is None )