safe.report.test.test_impact_report module

Tests for report creation using composition.

class safe.report.test.test_impact_report.ImpactReportTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test the InaSAFE Map generator

Xtest_print_impact_table()[source]

Test print impact table to pdf.

setUp()[source]

Setup fixture run before each tests

Test that setting user-defined logo works.

test_get_map_title()[source]

Getting the map title from the keywords

test_handle_missing_map_title()[source]

Missing map title from the keywords fails gracefully

test_missing_elements()[source]

Test missing elements set correctly.

test_print_default_template()[source]

Test printing report to pdf using default template works.