def test_setup_headshape():
 for hs in hs_fnames:
  (dig, t) = _process_bti_headshape(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 ( ) : for hs in hs_fnames : ( dig , t ) = _process_bti_headshape ( 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 ) ) )
test reading bti headshape .