safe.impact_functions.test.test_core module
Tests for core.py
InaSAFE Disaster risk assessment tool developed by AusAid -
Test Core
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_core.TestCore(methodName='runTest')[source]
Bases: unittest.case.TestCase
-
setUp()[source]
Setup test before each unit
-
test_arbitrary_needs()[source]
custom need ratios calculated are as expected
-
test_default_needs()[source]
default calculated needs are as expected
-
test_evacuated_population_needs()[source]
Test evacuated_population_needs function.
-
test_population_rounding()[source]
Test for population_rounding_full function.