#NEWLINE# def test_definition_not_senders_takes_priority_over_senders( self ) : #NEWLINE# #INDENT# definition = { #NEWLINE# #INDENT# 'not_senders' : [ '@misspiggy:muppets' ] , #NEWLINE# 'senders' : [ '@kermit:muppets' , '@misspiggy:muppets' ] , #NEWLINE# #UNINDENT# } #NEWLINE# event = MockEvent ( sender = '@misspiggy:muppets' , type = 'm.room.topic' , room_id = '!foo:bar' ) #NEWLINE# self . assertFalse ( Filter ( definition ) . check ( event ) )