@testing.requires_testing_data
def test_io_dipoles():
 tempdir = _TempDir()
 dipole = read_dipole(fname_dip)
 print dipole
 out_fname = op.join(tempdir, 'temp.dip')
 dipole.save(out_fname)
 dipole_new = read_dipole(out_fname)
 _compare_dipoles(dipole, dipole_new)

@ testing . requires_testing_data def test_io_dipoles ( ) : tempdir = _TempDir ( ) dipole = read_dipole ( fname_dip ) print dipole out_fname = op . join ( tempdir , 'temp.dip' ) dipole . save ( out_fname ) dipole_new = read_dipole ( out_fname ) _compare_dipoles ( dipole , dipole_new )
test io for .