def test_hsp_io(): """Test reading and writing hsp files""" pts = read_hsp(hsp_path) temp_fname = op.join(tempdir, 'temp_hsp.txt') write_hsp(temp_fname, pts) pts2 = read_hsp(temp_fname) assert_array_equal(pts, pts2, "Hsp points diverged after writing and " "reading.")
def test_io_hsp(): """Test IO for hsp files""" pts = read_hsp(hsp_fname) dest = os.path.join(tempdir, 'test.txt') write_hsp(dest, pts) pts1 = read_hsp(dest) assert_array_equal(pts, pts1)
def test_io_hsp(): """Test IO for hsp files""" pts = read_hsp(hsp_fname) dest = os.path.join(tempdir, 'test.txt') write_hsp(dest, pts) pts1 = read_hsp(dest) assert_array_equal(pts, pts1, "Hsp points diverged after writing and " "reading.")