#NEWLINE# def test_fit( self ) : #NEWLINE# #INDENT# f = SimpleAstropyGaussianFitter ( amplitude = 1 , mean = 2 , stddev = 3 ) #NEWLINE# f . fitting_cls = fitter = MagicMock ( ) #NEWLINE# f . build_and_fit ( [ 1 , 2 , 3 ] , [ 2 , 3 , 4 ] ) #NEWLINE# ( ( model , x , y ) , kwargs ) = fitter ( ) . call_args #NEWLINE# assert ( model . amplitude == 1 ) #NEWLINE# assert ( model . mean == 2 ) #NEWLINE# assert ( model . stddev == 3 ) #NEWLINE# np . testing . assert_array_equal ( x , [ 1 , 2 , 3 ] ) #NEWLINE# np . testing . assert_array_equal ( y , [ 2 , 3 , 4 ] )