def test_01(self): nt = collections.namedtuple('NT', ('A', 'B', 'C')) t0 = nt(0, 1, 2) t0a = util.ntpl2array(t0) t1 = util.array2ntpl(t0a) assert t0 == t1
def test_01(self): nt = collections.namedtuple('NT', ('A', 'B', 'C')) t0 = nt(0, 1, 2) t0a = util.ntpl2array(t0) t1 = util.array2ntpl(t0a) assert t0 == t1