#NEWLINE# def test_catchall( self ) : #NEWLINE# #INDENT# cfg = dict ( event_type = [ '*.thing' , '!test.thing' , '!other.thing' ] , traits = self . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertFalse ( edef . is_catchall ) #NEWLINE# cfg = dict ( event_type = [ '!other.thing' ] , traits = self . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertFalse ( edef . is_catchall ) #NEWLINE# cfg = dict ( event_type = [ 'other.thing' ] , traits = self . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertFalse ( edef . is_catchall ) #NEWLINE# cfg = dict ( event_type = [ '*' , '!other.thing' ] , traits = self . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertFalse ( edef . is_catchall ) #NEWLINE# cfg = dict ( event_type = [ '*' ] , traits = cfg . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertTrue ( edef . is_catchall ) #NEWLINE# cfg = dict ( event_type = [ '*' , 'foo' ] , traits = self . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertTrue ( edef . is_catchall )