def test_get_phantom_dipoles():
 assert_raises(ValueError, get_phantom_dipoles, 0)
 assert_raises(ValueError, get_phantom_dipoles, 'foo')
 for kind in ('vectorview', 'otaniemi'):
  (pos, ori) = get_phantom_dipoles(kind)
  assert_equal(pos.shape, (32, 3))
  assert_equal(ori.shape, (32, 3))

def test_get_phantom_dipoles ( ) : assert_raises ( ValueError , get_phantom_dipoles , 0 ) assert_raises ( ValueError , get_phantom_dipoles , 'foo' ) for kind in ( 'vectorview' , 'otaniemi' ) : ( pos , ori ) = get_phantom_dipoles ( kind ) assert_equal ( pos . shape , ( 32 , 3 ) ) assert_equal ( ori . shape , ( 32 , 3 ) )
test getting phantom dipole locations .