#NEWLINE# def test_add_dir( self ) : #NEWLINE# #INDENT# aug_default = ( '/files' + self . parser . loc [ 'default' ] ) #NEWLINE# self . parser . add_dir ( aug_default , 'AddDirective' , 'test' ) #NEWLINE# self . assertTrue ( self . parser . find_dir ( 'AddDirective' , 'test' , aug_default ) ) #NEWLINE# self . parser . add_dir ( aug_default , 'AddList' , [ '1' , '2' , '3' , '4' ] ) #NEWLINE# matches = self . parser . find_dir ( 'AddList' , None , self ) #NEWLINE# for ( i , match ) in enumerate ( matches ) : #NEWLINE# #INDENT# self . assertEqual ( self . parser . aug . get ( match ) , str ( ( i + 1 ) ) )