def test_representations(trend): rnd = np.random.RandomState(12345) y = np.cumsum(rnd.standard_normal(250)) adf = ADF(y, trend=trend, max_lags=16) check = "Constant" if trend == "n": check = "No Trend" assert check in adf.__repr__() assert check in adf.__repr__() assert check in adf._repr_html_() assert 'class="simpletable"' in adf._repr_html_()
def test_representations(trend): rnd = np.random.RandomState(12345) y = np.cumsum(rnd.randn(250)) adf = ADF(y, trend=trend, max_lags=16) check = 'Constant' if trend == 'nc': check = 'No Trend' assert check in adf.__repr__() assert check in adf.__repr__() assert check in adf._repr_html_() assert 'class="simpletable"' in adf._repr_html_()