#NEWLINE# def test_none_if_no_socket_filter( self ) : #NEWLINE# #INDENT# 'Should return None if the socket has no filter.' #NEWLINE# message = { #NEWLINE# #INDENT# 'annotation' : { #NEWLINE# #INDENT# '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# socket . filter = None #NEWLINE# assert ( messages . handle_annotation_event ( message , socket ) is None )