#NEWLINE# def test_close( self ) : #NEWLINE# #INDENT# self . top . recorders = [ CSVCaseRecorder ( filename = self . filename ) ] #NEWLINE# self . top . recorders [ 0 ] . num_backups = 0 #NEWLINE# self . top . run ( ) #NEWLINE# outputs = [ 'comp1.z' , 'comp2.z' , 'comp1.a_string' , 'comp1.a_array[2]' , 'driver.workflow.itername' ] #NEWLINE# inputs = [ 'comp1.x' , 'comp1.y' , 'comp1.x_array[1]' , 'comp1.b_bool' ] #NEWLINE# self . top . recorders [ 0 ] . register ( outputs , inputs , outputs ) #NEWLINE# outputs = [ 0 , 0 , 'world' , 0 , '1' ] #NEWLINE# inputs = [ 0.1 , ( 2 + 0.1 ) , 99.88 , True ] #NEWLINE# code = "self.top.recorders[0].record(self, inputs, outputs, None, '', '')" #NEWLINE# assert_raises ( self , code , globals ( ) , locals ( ) , RuntimeError , 'Attempt to record on closed recorder' )