safe.gui.tools.test.test_wizard_dialog_locale module

InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - GUI Test Cases for Wizard in Local mode.

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_wizard_dialog_locale.TestWizardDialogLocale(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test for Wizard Dialog in Locale mode.

check_current_step(expected_step, dialog)[source]

Helper function to check the current step is expected_step

Parameters:
  • expected_step (int) – The expected current step.
  • dialog (WizardDialog) – The dialog that contains a wizard.
check_current_text(expected_text, list_widget)[source]

Check the current text in list widget is expected_text

Parameters:
  • expected_text (str) – The expected current step.
  • list_widget (QListWidget) – List widget that wants to be checked.
check_list(expected_list, list_widget)[source]

Helper function to check that list_widget is equal to expected_list.

Parameters:
  • expected_list (QListWidget) – List of expected values to be found.
  • list_widget – List widget that wants to be checked.
select_from_list_widget(option, list_widget)[source]

Helper function to select option from list_widget

Parameters:
  • option (str) – Option to be chosen
  • list_widget (QListWidget) – List widget that wants to be checked.
setUp()[source]
tearDown()[source]
test_existing_complex_keywords()[source]

Test for existing complex keywords in wizard in locale mode.

test_translation()[source]

Test for metadata translation.