#NEWLINE# def test_transform_just_scale_or_add( self ) : #NEWLINE# #INDENT# self . top . comp . v1 = 15.0 #NEWLINE# self . top . comp . add_trait ( 'v1' , Float ( 0.0 , low = ( - 100.0 ) , high = 100.0 , iotype = 'in' ) ) #NEWLINE# self . top . driver . add_parameter ( 'comp.v1' , high = 12.0 , scaler = 1.5 ) #NEWLINE# self . top . driver2 . add_parameter ( 'comp.v1' , low = ( - 6.0 ) , adder = ( - 2.0 ) ) #NEWLINE# params = self . top . driver . get_parameters ( ) #NEWLINE# params2 = self . top . driver2 . get_parameters ( ) #NEWLINE# d1val = params [ 'comp.v1' ] . evaluate ( ) [ 0 ] #NEWLINE# d2val = params2 [ 'comp.v1' ] . evaluate ( ) [ 0 ] #NEWLINE# self . assertEqual ( d1val , 10.0 ) #NEWLINE# self . assertEqual ( params , 17.0 )