safe.impact_functions.test.test_registry module
InaSAFE Disaster risk assessment tool developed by AusAid -
Test module for Registry
Contact : ole.moller.nielsen@gmail.com
Note
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-
class safe.impact_functions.test.test_registry.TestRegistry(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp()[source]
-
test_filter_by_exposure_metadata()[source]
TestRegistry: Test filtering IF by exposure metadata.
-
test_filter_by_hazard_metadata()[source]
TestRegistry: Test filtering IF by hazard metadata.
-
test_filter_by_keywords()[source]
TestRegistry: Test filtering IF using hazard n exposure keywords.
-
test_filter_by_keywords_dev()[source]
TestRegistry: Test filtering IF using hazard n exposure keywords.
Note (IS): I use this test to check the result of IF filtering only.
-
test_filter_by_metadata()[source]
TestRegistry: Test filtering IF by hazard and exposure metadata.
-
test_get_impact_function_class()[source]
TestRegistry: Test we can get an impact function class.
-
test_get_impact_function_instance()[source]
TestRegistry: Test we can get an impact function instance.
-
test_get_impact_functions_by_metadata()[source]
TestRegistry: Test getting the impact functions by its metadata.
-
test_list()[source]
TestRegistry: Test list all register IFs.
-
test_register_and_clear()[source]
TestRegistry: Test register and clear impact function.