#NEWLINE# def test_includes_and_excludes( self ) : #NEWLINE# #INDENT# prob = Problem ( ) #NEWLINE# prob . root = ConvergeDiverge ( ) #NEWLINE# prob . driver . add_recorder ( expected_unknowns . recorder ) #NEWLINE# self . recorder . options [ 'includes' ] = [ 'comp1.*' ] #NEWLINE# self . recorder . options [ 'excludes' ] = [ '*.y2' ] #NEWLINE# self . recorder . options [ 'record_params' ] = True #NEWLINE# self . recorder . options [ 'record_resids' ] = True #NEWLINE# prob . setup ( check = False ) #NEWLINE# ( t0 , t1 ) = run_problem ( prob ) #NEWLINE# prob . cleanup ( ) #NEWLINE# coordinate = [ 0 , 'Driver' , ( 1 , ) ] #NEWLINE# expected_params = [ ( 'comp1.x1' , 2.0 ) ] #NEWLINE# expected_unknowns = [ ( 'comp1.y1' , 8.0 ) ] #NEWLINE# expected_resids = [ ( 'comp1.y1' , 0.0 ) ] #NEWLINE# self . assertIterationDataRecorded ( ( ( coordinate , ( t0 , t1 ) , expected_params , expected_unknowns , expected_resids ) , ) , self . eps )