def test_list(self):
     """TestRegistry: Test list all register IFs."""
     registry = Registry()
     impact_functions = registry.list()
     expected = [
         'Polygon flood on buildings',
         'Polygon flood on roads',
         'Polygon flood on people',
         'Raster flood on population',
         'Raster flood on buildings',
         'Raster flood on roads (QGIS)',
         'Raster flood on roads (GDAL)',
         'Tsunami evacuation',
         'Classified raster hazard on buildings',
         'Classified raster hazard on population',
         'Continuous raster hazard on population',
         'Classified polygon hazard on population',
         'Classified polygon hazard on buildings',
         'Earthquake on buildings',
         'Earthquake ITB fatality function',
         'Earthquake PAGER fatality function',
         'Point volcano on buildings',
         'Polygon volcano on buildings',
         'Point volcano on population',
         'Polygon volcano on population']
     self.assertTrue(len(impact_functions) == len(expected))
     self.assertItemsEqual(expected, impact_functions)
Example #2
0
 def test_list(self):
     """TestRegistry: Test list all register IFs."""
     registry = Registry()
     impact_functions = registry.list()
     expected = [
         'Polygon flood on buildings',
         'Polygon flood on roads',
         'Polygon flood on people',
         'Raster flood on population',
         'Raster flood on buildings',
         'Raster flood on roads (QGIS)',
         'Raster flood on roads (GDAL)',
         'Tsunami evacuation',
         'Classified raster hazard on buildings',
         'Classified raster hazard on population',
         'Continuous raster hazard on population',
         'Classified polygon hazard on population',
         'Classified polygon hazard on buildings',
         'Earthquake on buildings',
         'Earthquake ITB fatality function',
         'Earthquake PAGER fatality function',
         'Point volcano on buildings',
         'Polygon volcano on buildings',
         'Point volcano on population',
         'Polygon volcano on population']
     self.assertTrue(len(impact_functions) == len(expected))
     self.assertItemsEqual(expected, impact_functions)
Example #3
0
 def test_list(self):
     """TestRegistry: Test list all register IFs."""
     registry = Registry()
     impact_functions = registry.list()
     self.assertItemsEqual(EXPECTED_IF, impact_functions)
 def test_list(self):
     """TestRegistry: Test list all register IFs."""
     registry = Registry()
     impact_functions = registry.list()
     self.assertItemsEqual(EXPECTED_IF, impact_functions)