def test_product(self):
    prod = (self.formula['A'] * self.formula['C'])
    f = (self.formula + prod)
    f.namespace = self.namespace
    x = f.design()
    p = f['A*C']
    p.namespace = self.namespace
    col = f.termcolumns(prod, dict=False)
    assert_almost_equal(np.squeeze(x[:, col]), (self.X[:, 0] * self.X[:, 2]))
    assert_almost_equal(np.squeeze(p()), (self.X[:, 0] * self.X[:, 2]))
def test_product(self):
    prod = (self.formula['A'] * self.formula['C'])
    f = (self.formula + prod)
    f.namespace = self.namespace
    x = f.design()
    p = f['A*C']
    p.namespace = self.namespace
    col = f.termcolumns(prod, dict=False)
    assert_almost_equal(np.squeeze(x[:, col]), (self.X[:, 0] * self.X[:, 2]))
    assert_almost_equal(np.squeeze(p()), (self.X[:, 0] * self.X[:, 2]))