safe.gui.widgets.test.test_message_viewer module

InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - Import 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.widgets.test.test_message_viewer.MessageViewerTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test cases for message viewer module.

fake_error()[source]

Make a fake error (helper for other tests) :returns: Contents of the message viewer as string and with newlines

stripped off.

:rtype : str

setUp()[source]

Fixture run before all tests

tearDown()[source]

Fixture run after each test

test_dynamic_message()[source]

Test we can send dynamic messages to the message viewer.

test_error_message()[source]

Test we can send error messages to the message viewer.

test_static_and_error()[source]

Test error message works when there is a static message in place.

test_static_message()[source]

Test we can send static messages to the message viewer.