File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -246,13 +246,10 @@ def test_instrument(self):
246
246
mock_get_gcmd_method .assert_called_with ('VIIRS' )
247
247
248
248
def test_instrument_missing_attribute (self ):
249
- """A MetadataNormalizationError must be raised if the raw
250
- attribute is missing
249
+ """An unknown instrument must be returned if the raw attribute
250
+ is missing
251
251
"""
252
- with self .assertRaises (MetadataNormalizationError ):
253
- self .normalizer .get_instrument ({})
254
- with self .assertRaises (MetadataNormalizationError ):
255
- self .normalizer .get_instrument ({'umm' : {'foo' : 'bar' }})
252
+ self .assertEqual (self .normalizer .get_instrument ({})['Category' ], 'Unknown' )
256
253
257
254
def test_location_geometry_one_bounding_box (self ):
258
255
"""Test getting the location_geometry from one bounding box"""
You can’t perform that action at this time.
0 commit comments