#NEWLINE# def test_definition_types_works_with_wildcards( self ) : #NEWLINE# #INDENT# definition = { #NEWLINE# #INDENT# 'types' : [ 'm.*' , 'org.matrix.foo.bar' ] , #NEWLINE# #UNINDENT# } #NEWLINE# event = MockEvent ( sender = '@foo:bar' , type = 'm.room.message' , room_id = '!foo:bar' ) #NEWLINE# self . assertTrue ( Filter ( definition ) . check ( event ) )