def test_get_exposure_layer_constraint(self):
     """Test for get_exposure_layer_constraint."""
     impact_function = FloodRasterBuildingFunction()
     expected_layer_constraint = [layer_vector_polygon, layer_vector_point]
     layer_constraints \
         = impact_function.metadata().get_exposure_layer_constraint()
     message = 'Expected %s but got %s' % (expected_layer_constraint,
                                           layer_constraints)
     self.assertItemsEqual(expected_layer_constraint, layer_constraints,
                           message)
 def test_get_hazard_layer_constraint(self):
     """Test for get_hazard_layer_constraint."""
     impact_function = FloodRasterBuildingFunction()
     expected_layer_constraint = [layer_raster_continuous]
     layer_constraints \
         = impact_function.metadata().get_hazard_layer_constraint()
     message = 'Expected %s but got %s' % (
         expected_layer_constraint, layer_constraints)
     self.assertItemsEqual(
         expected_layer_constraint, layer_constraints, message)
 def test_get_hazard_layer_constraint(self):
     """Test for get_hazard_layer_constraint."""
     impact_function = FloodRasterBuildingFunction()
     expected_layer_constraint = [layer_raster_continuous]
     layer_constraints \
         = impact_function.metadata().get_hazard_layer_constraint()
     message = 'Expected %s but got %s' % (expected_layer_constraint,
                                           layer_constraints)
     self.assertItemsEqual(expected_layer_constraint, layer_constraints,
                           message)
 def test_get_exposure_layer_constraint(self):
     """Test for get_exposure_layer_constraint."""
     impact_function = FloodRasterBuildingFunction()
     expected_layer_constraint = [
         layer_vector_polygon,
         layer_vector_point
     ]
     layer_constraints \
         = impact_function.metadata().get_exposure_layer_constraint()
     message = 'Expected %s but got %s' % (
         expected_layer_constraint, layer_constraints)
     self.assertItemsEqual(
         expected_layer_constraint, layer_constraints, message)