#NEWLINE# def test_definition_combined_event_bad_sender( self ) : #NEWLINE# #INDENT# definition = { #NEWLINE# #INDENT# 'not_senders' : [ '@misspiggy:muppets' ] , #NEWLINE# 'senders' : [ '@kermit:muppets' ] , #NEWLINE# 'rooms' : [ '!stage:unknown' ] , #NEWLINE# 'not_rooms' : [ '!piggyshouse:muppets' ] , #NEWLINE# 'types' : [ 'm.room.message' , 'muppets.kermit.*' ] , #NEWLINE# 'not_types' : [ 'muppets.misspiggy.*' ] , #NEWLINE# #UNINDENT# } #NEWLINE# event = MockEvent ( sender = '@misspiggy:muppets' , type = 'm.room.message' , room_id = '!stage:unknown' ) #NEWLINE# self . assertFalse ( Filter ( definition ) . check ( event ) )