Skip to content

Commit

Permalink
fix overview test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhanson committed Feb 2, 2017
1 parent 84e7305 commit b2dced1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ def test_convert_to_geotiff(self):
""" Convert hdf to individual GeoTIFF files """
fnames = convert_to_geotiff(self.fnames[0], outdir=os.path.dirname(__file__))
for f in fnames:
ext = os.path.splitext(f)[1]
suffix = os.path.splitext(f)[0].split('_')[1]
self.assertTrue(os.path.exists(f))
self.assertTrue(suffix in products['MCD43A4.006']['bandnames'])
if ext != '.ovr':
self.assertTrue(suffix in products['MCD43A4.006']['bandnames'])

def test_ingest_granule(self):
""" Ingest granule (download and save to S3) """
Expand Down

0 comments on commit b2dced1

Please sign in to comment.