def test_flat_length():
    a = m.Product.from_fields('anon', dict(x=m.Bits[5], y=m.Bits[3], z=m.Bit))
    assert (a.flat_length() == 9)
def test_flat_length():
    a = m.Product.from_fields('anon', dict(x=m.Bits[5], y=m.Bits[3], z=m.Bit))
    assert (a.flat_length() == 9)