#NEWLINE# def test_fix_fit_norm( self ) : #NEWLINE# #INDENT# x = np . arange ( 1 , 6 ) #NEWLINE# ( loc , scale ) = stats . norm . fit ( x ) #NEWLINE# assert_almost_equal ( loc , 3 ) #NEWLINE# assert_almost_equal ( scale , np . sqrt ( 2 ) ) #NEWLINE# ( loc , scale ) = stats . norm . fit ( x , floc = 2 ) #NEWLINE# assert_equal ( loc , 2 ) #NEWLINE# assert_equal ( scale , np . sqrt ( 3 ) ) #NEWLINE# ( loc , scale ) = stats . norm . fit ( x , fscale = 2 ) #NEWLINE# assert_almost_equal ( loc , 3 ) #NEWLINE# assert_equal ( scale , 2 )