#NEWLINE# def test_fit_ls( self ) : #NEWLINE# #INDENT# assert_allclose ( self . res_ls [ 0 ] , self . ls_params , atol = 0.0001 , rtol = 0.001 ) #NEWLINE# self . res_ls [ 1 ] #NEWLINE# bse = np . sqrt ( np . diag ( self . res_ls [ 1 ] ) ) #NEWLINE# assert_allclose ( bse , self . ls_bse , atol = 0.0001 , rtol = 0.001 )