### Navigation

- index
- modules
- next
- previous
- Home »
- Contents »
- InaSAFE’s API documentation »
- Package::safe »
- Package::safe.impact_functions »

# Module: safe.impact_functions.test_plugin_core

class `safe.impact_functions.test_plugin_core.``BasicFunction`

  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`

  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`

  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`

  Risk plugin for testing

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

class `safe.impact_functions.test_plugin_core.``F4`

  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`

  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')

  Tests of Risiko calculations

  `test_basic_plugin_requirements`()

    Basic plugin requirements collection

  `test_basic_plugin_requirements_met`()

    Basic plugin requirements met

  `test_basic_requirements_check`()

    Basic plugin requirements check

  `test_filtering_of_impact_functions`()

    Impact functions are filtered correctly

  `test_format_int`()

    Test formatting integer

  `test_get_documentation`()

    Test get_documentation for a function

  `test_get_plugins_as_table`()

    Test get plugins as table with filtering.

  `test_keywords_error`()

    Handling of reserved python keywords

  `test_parse_requirement`()

    Test parse requirements of a function to dictionary.

  `test_pretty_string`()

    Test return pretty string from list or string.

This module forms part of the InaSAFE tool.

### Navigation

- index
- modules
- next
- previous
- Home »
- Contents »
- InaSAFE’s API documentation »
- Package::safe »
- Package::safe.impact_functions »