Module: safe.impact_functions.test_plugin_core

class safe.impact_functions.test_plugin_core.BasicFunction[source]

Risk plugin for testing

:author Allen :rating 1 :param requires category==”test_cat1” :param requires unit==”MMI”

class safe.impact_functions.test_plugin_core.F1[source]

Risk plugin for testing

:param requires category==’test_cat1’ and subcategory.startswith(‘flood’) and layertype==’raster’ and unit==’m’

:param requires category==’test_cat2’ and subcategory.startswith(‘population’) and layertype==’raster’ and datatype==’population’

class safe.impact_functions.test_plugin_core.F2[source]

Risk plugin for testing

:param requires category==’test_cat1’ and subcategory.startswith(‘flood’) and layertype==’raster’ and unit==’m’

:param requires category==’test_cat2’ and subcategory.startswith(‘building’)

class safe.impact_functions.test_plugin_core.F3[source]

Risk plugin for testing

:param requires category==’test_cat1’ :param requires category==’test_cat2’

class safe.impact_functions.test_plugin_core.F4[source]

Risk plugin for testing

:param requires category==’hazard’ and subcategory in [‘flood’, ‘tsunami’]

:param requires category==’exposure’ and subcategory in [‘building’, ‘structure’] and layertype==’vector’

class safe.impact_functions.test_plugin_core.SyntaxErrorFunction[source]

Risk plugin for testing

:author Allen :rating 1 :param requires category==”test_cat1” :param requires unit=”MMI” # Note the error should be ==

class safe.impact_functions.test_plugin_core.Test_plugin_core(methodName='runTest')[source]

Tests of Risiko calculations

test_basic_plugin_requirements()[source]

Basic plugin requirements collection

test_basic_plugin_requirements_met()[source]

Basic plugin requirements met

test_basic_requirements_check()[source]

Basic plugin requirements check

test_filtering_of_impact_functions()[source]

Impact functions are filtered correctly

test_get_plugins_as_table()[source]

Test get plugins as table with filtering.

test_keywords_error()[source]

Handling of reserved python keywords

test_parse_requirement()[source]

Test parse requirements of a function to dictionary.

test_pretty_string()[source]

Test return pretty string from list or string.

This module forms part of the InaSAFE tool.

Previous topic

Module: safe.impact_functions.core

Next topic

Module: safe.impact_functions.test_real_impact_functions

This Page