def test_setup_headshape(): """ Test reading bti headshape """ for hs in hs_fnames: dig, t = _setup_head_shape(hs) expected = set(['kind', 'ident', 'r']) found = set(reduce(lambda x, y: list(x) + list(y), [d.keys() for d in dig])) assert_true(not expected - found)
def test_setup_headshape(): """ Test reading bti headshape """ for hs in hs_fnames: dig, t = _setup_head_shape(hs) expected = set(['kind', 'ident', 'r']) found = set( reduce(lambda x, y: list(x) + list(y), [d.keys() for d in dig])) assert_true(not expected - found)