def test_contrast2(self):
    dummy = formula.Term('zero')
    self.namespace['zero'] = np.zeros((40,), np.float64)
    term = (dummy + self.terms[2])
    c = contrast.Contrast(term, self.formula)
    test = ((([0] * 2) + [1]) + ([0] * 7))
    assert_almost_equal(c.matrix, test)
def test_contrast2(self):
    dummy = formula.Term('zero')
    self.namespace['zero'] = np.zeros((40,), np.float64)
    term = (dummy + self.terms[2])
    c = contrast.Contrast(term, self.formula)
    test = ((([0] * 2) + [1]) + ([0] * 7))
    assert_almost_equal(c.matrix, test)