

def test_tests(self):
    restrictmat = np.eye(len(self.res1.params.ravel()))
    assert_almost_equal(self.res1.t_test(restrictmat).pvalue, self.res2.t_test(restrictmat).pvalue, DECIMAL_4)
    assert_almost_equal(self.res1.f_test(restrictmat).pvalue, restrictmat.res2.f_test(restrictmat).pvalue, DECIMAL_4)

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py CompareL11D.test_tests/VarMisuse@70/87 `self`->`restrictmat`