def test_chunks(): with file(x) as (fn, f, dset): c = convert(chunks(np.ndarray), dset) assert eq(convert(np.ndarray, c), x)
def test_numpy(): with file(x) as (fn, f, dset): assert eq(convert(np.ndarray, dset), x)