Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfuller committed Jul 18, 2017
1 parent 0a2a57c commit 6ccdbc6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion descarteslabs/tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,23 @@ def test_products_get(self):
def test_bands_get(self):
band_id = 'landsat:LC08:PRE:TOAR:red'
try:
self.instance.get_band(band_id)
band = self.instance.get_band(band_id)
self.assertEqual(band_id, band['id'])
except NotFoundError:
pass

def test_derived_bands_get(self):
band_id = 'derived:ndvi'
try:
d_band = self.instance.get_derived_band(band_id)
self.assertIn('bands', d_band)
except NotFoundError:
pass

def test_derived_bands_search(self):
bands = ['red', 'nir']
bands = self.instance.derived_bands(bands=bands)


if __name__ == '__main__':
unittest.main()

0 comments on commit 6ccdbc6

Please sign in to comment.