Skip to content

Commit 1ee8a0d

Browse files
author
Matt Bertrand
committed
Fix test
1 parent 20a173f commit 1ee8a0d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

dataqs/hadghcnd/tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def test_extract_band(self):
7676
self.processor.base_url, layer.rstrip('.tgz'))
7777
ncds_gdal_name = 'NETCDF:{}:tmin'.format(
7878
os.path.join(self.processor.tmp_dir, imgfile))
79-
bandout = os.path.join(self.processor.tmp_dir,
80-
'{}test'.format(self.processor.prefix))
81-
self.processor.extract_band(ncds_gdal_name, 1, bandout)
82-
self.assertTrue(os.path.exists(os.path.join(bandout)))
83-
img = gdal.Open(bandout)
79+
bandout = '{}_test.tif'.format(self.processor.prefix)
80+
outpath = self.processor.extract_band(ncds_gdal_name, 1, bandout,
81+
projection='WGS84')
82+
self.assertTrue(os.path.exists(outpath))
83+
img = gdal.Open(outpath)
8484
try:
8585
self.assertEquals(1, img.RasterCount)
8686
finally:

0 commit comments

Comments
 (0)