def test_append_chunks(): with file(x) as (fn, f, dset): append(dset, chunks(np.ndarray)([x, x])) assert len(dset) == len(x) * 3
def test_append(): with file(x) as (fn, f, dset): append(dset, x) assert eq(dset[:], np.concatenate([x, x]))