test_plot.py
def testing_best_fit_plotting():
    """ Function for testing the plotting of the line of best fit """
    dates = list(range(0, 50))
    levels = [x**5 + 4 * x**4 - 2 * x + 156 for x in dates]

    n = 5

    p_coeff = np.polyfit(dates, levels, n)  
    poly = np.poly1d(p_coeff)

    assert round(poly(156)) == 94758543204
 Function for testing the plotting of the line of best fit 
Function for testing the plotting of the line of best fit
Function for testing the plotting of the line of best fit
def testing_best_fit_plotting():
    dates = list(range(0, 50))
    levels = [x**5 + 4 * x**4 - 2 * x + 156 for x in dates]
    n = 5
    p_coeff = np.polyfit(dates, levels, n)  
    poly = np.poly1d(p_coeff)
    assert round(poly(156)) == 94758543204
def testing_best_fit_plotting ( ) : dates = list ( range ( 0 , 50 ) ) levels = [ x ** 5 + 4 * x ** 4 - 2 * x + 156 for x in dates ] n = 5 p_coeff = np . polyfit ( dates , levels , n ) poly = np . poly1d ( p_coeff ) assert round ( poly ( 156 ) ) == 94758543204
Function for testing the plotting of the line of best fit
Function for testing the plotting of the line of best fit
""" Function for testing the plotting of the line of best fit """