#NEWLINE# def test_sublevel_record( self ) : #NEWLINE# #INDENT# prob = Problem ( ) #NEWLINE# prob . root = ExampleGroup ( ) #NEWLINE# prob . root . G2 . G1 . nl_solver . add_recorder ( self . recorder ) #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 , ) , 'root' , ( 1 , ) , 'G2' , ( 1 , ) , 'G1' , ( 1 , ) ] #NEWLINE# expected_params = [ ( 'C2.x' , 5.0 ) ] #NEWLINE# expected_unknowns = [ ( 'C2.y' , 10.0 ) ] #NEWLINE# expected_resids = [ ( 'C2.y' , 0.0 ) ] #NEWLINE# self . assertIterationDataRecorded ( ( ( coordinate , ( t0 , t1 ) , expected_params , expected_unknowns , expected_resids ) , ) , self . eps )