@@ -0,0 +1,669 @@
+from .. import pvregions%0Afrom astropy import wcs%0Afrom astropy.io import fits%0Aimport numpy as np%0Aimport os%0A%0Adef data_path(filename):%0A    data_dir = os.path.join(os.path.dirname(__file__), 'data')%0A    return os.path.join(data_dir, filename)%0A%0Adef test_wcspath():%0A    p1,p2 = pvregions.paths_from_regfile(data_path('tests.reg'))%0A    w = wcs.WCS(fits.Header.fromtextfile(data_path('w51.hdr')))%0A    p1.set_wcs(w)%0A%0A    shouldbe = (61.593585,75.950471,88.911616,72.820463,96.025686,88.470505,113.95314,95.868707,186.80123,76.235017,226.35546,100.99054)%0A    xy = (np.array(zip(shouldbe%5B::2%5D,shouldbe%5B1::2%5D)) - 1)%0A    np.testing.assert_allclose(np.array((p1.xy)), xy, rtol=1e-5)%0A

add successfull test