#NEWLINE# def test_predict( self ) : #NEWLINE# #INDENT# f = PolynomialFitter ( degree = 1 ) #NEWLINE# fit = f . build_and_fit ( [ 1 , 2 , 3 ] , [ 2 , 3 , 4 ] ) #NEWLINE# result = f . predict ( fit , [ 4 ] ) #NEWLINE# expected = [ 5 ] #NEWLINE# np . testing . assert_almost_equal ( result , expected )