def test_detect_output_type_with_loss(self): """A loss map is correctly detected.""" self.assertEqual( "loss", detect_output_type("tests/data/loss-map-0fcfdbc7.xml"))
def test_detect_output_type_with_hazard(self): """A hazard map is correctly detected.""" self.assertEqual( "hazard", detect_output_type("tests/data/hazardmap-0.1-quantile-0.25.xml"))