def test_factor5(self):
    f = (['a', 'b', 'c'] * 3)
    fac = formula.Factor('ff', f)
    fac.namespace = {'ff': f}
    assert_equal(fac(), [([1, 0, 0] * 3), ([0, 1, 0] * 3), ([0, 0, 1] * 3)])
    assert_equal(fac['a'], ([1, 0, 0] * 3))
    assert_equal(fac['b'], ([0, 1, 0] * 3))
    assert_equal(fac['c'], ([0, 0, 1] * 3))
def test_factor5(self):
    f = (['a', 'b', 'c'] * 3)
    fac = formula.Factor('ff', f)
    fac.namespace = {'ff': f}
    assert_equal(fac(), [([1, 0, 0] * 3), ([0, 1, 0] * 3), ([0, 0, 1] * 3)])
    assert_equal(fac['a'], ([1, 0, 0] * 3))
    assert_equal(fac['b'], ([0, 1, 0] * 3))
    assert_equal(fac['c'], ([0, 0, 1] * 3))