def test_make_sphere_model():
 info = read_info(fname_raw)
 assert_raises(ValueError, make_sphere_model, 'foo', 'auto', info)
 assert_raises(ValueError, make_sphere_model, 'auto', 'auto', None)
 assert_raises(ValueError, make_sphere_model, 'auto', 'auto', info, relative_radii=(), sigmas=())
 assert_raises(ValueError, make_sphere_model, 'auto', 'auto', info, relative_radii=(1,))
 bem = make_sphere_model('auto', 'auto', info)
 assert_true(('3 layers' in repr(bem)))
 assert_true(('Sphere ' in repr(bem)))
 assert_true((' mm' in repr(bem)))
 bem = make_sphere_model('auto', None, info)
 assert_true(('no layers' in repr(bem)))
 assert_true(('Sphere ' in repr(bem)))

def test_make_sphere_model ( ) : info = read_info ( fname_raw ) assert_raises ( ValueError , make_sphere_model , 'foo' , 'auto' , info ) assert_raises ( ValueError , make_sphere_model , 'auto' , 'auto' , None ) assert_raises ( ValueError , make_sphere_model , 'auto' , 'auto' , info , relative_radii = ( ) , sigmas = ( ) ) assert_raises ( ValueError , make_sphere_model , 'auto' , 'auto' , info , relative_radii = ( 1 , ) ) bem = make_sphere_model ( 'auto' , 'auto' , info ) assert_true ( ( '3 layers' in repr ( bem ) ) ) assert_true ( ( 'Sphere ' in repr ( bem ) ) ) assert_true ( ( ' mm' in repr ( bem ) ) ) bem = make_sphere_model ( 'auto' , None , info ) assert_true ( ( 'no layers' in repr ( bem ) ) ) assert_true ( ( 'Sphere ' in repr ( bem ) ) )
test making a sphere model .