#NEWLINE# def test_create( self ) : #NEWLINE# #INDENT# self . event_type_name = testlib . tmpname ( ) #NEWLINE# event_types = self . service . event_types #NEWLINE# self . assertFalse ( ( self . event_type_name in event_types ) ) #NEWLINE# kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# kwargs [ 'search' ] = 'index=_internal *' #NEWLINE# kwargs [ 'description' ] = 'An internal event' #NEWLINE# kwargs [ 'disabled' ] = 1 #NEWLINE# kwargs [ 'priority' ] = 2 #NEWLINE# event_type = event_types . create ( self . event_type_name , ** kwargs ) #NEWLINE# self . assertTrue ( ( self . event_type_name in event_types ) ) #NEWLINE# self . assertEqual ( self . event_type_name , event_type . name )