#NEWLINE# def test_excluded_type_list( self ) : #NEWLINE# #INDENT# cfg = dict ( event_type = [ '!test.thing' , '!other.thing' ] , traits = self . traits_cfg ) #NEWLINE# edef = distiller . EventDefinition ( cfg , self . fake_plugin_map ) #NEWLINE# self . assertEqual ( 1 , len ( edef . _included_types ) ) #NEWLINE# self . assertEqual ( 2 , len ( edef . _excluded_types ) ) #NEWLINE# self . assertTrue ( edef . excluded_type ( 'test.thing' ) ) #NEWLINE# self . assertTrue ( edef . excluded_type ( 'other.thing' ) ) #NEWLINE# self . assertFalse ( edef . excluded_type ( 'random.thing' ) ) #NEWLINE# self . assertFalse ( edef . match_type ( 'test.thing' ) ) #NEWLINE# self . assertFalse ( edef . match_type ( 'other.thing' ) ) #NEWLINE# self . assertTrue ( edef . match_type ( 'random.thing' ) )