def test_standard_properties(self):
        metadata = HazardLayerMetadata(unique_filename())
        with self.assertRaises(KeyError):
            metadata.get_property('non_existing_key')

        # from BaseMetadata
        metadata.get_property('email')

        # from HazardLayerMetadata
        metadata.get_property('hazard')
        metadata.get_property('hazard_category')
        metadata.get_property('continuous_hazard_unit')
        metadata.get_property('thresholds')
        metadata.get_property('value_maps')
Exemplo n.º 2
0
    def test_standard_properties(self):
        metadata = HazardLayerMetadata(unique_filename())
        with self.assertRaises(KeyError):
            metadata.get_property('non_existing_key')

        # from BaseMetadata
        metadata.get_property('email')

        # from HazardLayerMetadata
        metadata.get_property('hazard')
        metadata.get_property('hazard_category')
        metadata.get_property('continuous_hazard_unit')
        metadata.get_property('thresholds')
        metadata.get_property('value_maps')
    def test_standard_properties(self):
        metadata = HazardLayerMetadata(unique_filename())
        with self.assertRaises(KeyError):
            metadata.get_property('non_existing_key')

        # from BaseMetadata
        metadata.get_property('email')

        # from HazardLayerMetadata
        metadata.get_property('hazard')
        metadata.get_property('hazard_category')
        metadata.get_property('continuous_hazard_unit')
        metadata.get_property('vector_hazard_classification')
        metadata.get_property('raster_hazard_classification')
Exemplo n.º 4
0
    def test_standard_properties(self):
        metadata = HazardLayerMetadata(unique_filename())
        with self.assertRaises(KeyError):
            metadata.get_property('non_existing_key')

        # from BaseMetadata
        metadata.get_property('email')

        # from HazardLayerMetadata
        metadata.get_property('hazard')
        metadata.get_property('hazard_category')
        metadata.get_property('continuous_hazard_unit')
        metadata.get_property('vector_hazard_classification')
        metadata.get_property('raster_hazard_classification')
Exemplo n.º 5
0
    def test_standard_properties(self):
        metadata = HazardLayerMetadata(unique_filename())
        with self.assertRaises(KeyError):
            metadata.get_property("non_existing_key")

        # from BaseMetadata
        metadata.get_property("email")

        # from HazardLayerMetadata
        metadata.get_property("hazard")
        metadata.get_property("hazard_category")
        metadata.get_property("continuous_hazard_unit")
        metadata.get_property("vector_hazard_classification")
        metadata.get_property("raster_hazard_classification")