safe.impact_reports.test.test_building_exposure_report_mixin module
InaSAFE Disaster risk assessment tool developed by AusAid -
Test for Building Exposure Report Mixin
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_reports.test.test_building_exposure_report_mixin.BuildingExposureReportMixinTest(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test the ReportMixin.
-
setUp()[source]
Fixture run before all tests.
-
tearDown()[source]
Run after each test.
-
test_0001_generate_report()[source]
Generate a blank report.
-
test_0002_action_checklist()[source]
The default action check list.
-
test_0003_impact_summary()[source]
Test the buildings impact summary.
-
test_0004_buildings_breakdown()[source]
Test the buildings breakdown.
-
test_0005_schools_closed()[source]
Test schools closed as expected.
-
test_0006_hospitals_closed()[source]
Test hospitals closed as expected.
-
test_0007_general_methods()[source]
Test general methods.
-
test_0008_building_counts()[source]
Test the building counts.
-
test_0009_consolidate_to_other()[source]
Test consolidating smaller building types to ‘other’.