#NEWLINE# def test_definition_rooms_works_with_literals( self ) : #NEWLINE# #INDENT# definition = { #NEWLINE# #INDENT# 'rooms' : [ '!secretbase:unknown' ] , #NEWLINE# #UNINDENT# } #NEWLINE# event = MockEvent ( sender = '@foo:bar' , type = 'm.room.message' , room_id = '!secretbase:unknown' ) #NEWLINE# self . assertTrue ( Filter ( definition ) . check ( event ) )