safe.gui.tools.test.test_impact_merge_dialog module

InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - Impact Merge Dialog Test Cases.

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.gui.tools.test.test_impact_merge_dialog.ImpactMergeDialogTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test Impact Merge Dialog widget.

mock_the_dialog(test_entire_mode)[source]
register_layers()[source]

Register needed layers to QgsMapLayerRegistry.

setUp()[source]

Runs before each test.

tearDown()[source]

Runs after each test.

test_generate_html_reports()[source]

Test generate_html_reports function.

test_generate_report_dictionary_from_dom()[source]

Test generate_report_dictionary_from_dom function.

test_generate_report_summary()[source]

Test generate_report_summary function.

test_generate_reports()[source]

Test generate_reports function.

test_get_project_layers()[source]

Test get_project_layers function.

test_load_template()[source]

Test load_template function.

test_merge()[source]

Test merge function.

test_prepare_input()[source]

Test prepare_input function.

test_require_directory()[source]

Test require_directory function.

test_validate_all_layers()[source]

Test validate_all_layers function.