Module: test_is_keywords_dialog
This page contains the documentation for the InaSAFE
test_is_keywords_dialog unit tests.
InaSAFE Disaster risk assessment tool developed by AusAid and World Bank
- GUI 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 gui.test_is_keywords_dialog.ISKeywordsDialogTest(methodName='runTest')[source]
Test the InaSAFE keywords GUI
-
Xtest_on_radExposure_toggled()[source]
Test exposure radio button toggle behaviour works
-
setUp()[source]
Create fresh dialog for each test
-
tearDown()[source]
Destroy the dialog after each test
-
test_addListEntry()[source]
Test add entry to list works
-
test_addWarningsForColons()[source]
Test add entry to list works
-
test_getValueForKey()[source]
Test get value for key works
-
test_loadStateFromKeywords()[source]
Test load state from keywords works
-
test_on_cboSubcategory_currentIndexChanged()[source]
Test subcategory combo change event works
-
test_on_pbnAddToList1_clicked()[source]
Test adding an item to the list using predefined form works
-
test_on_pbnAddToList2_clicked()[source]
Test adding an item to the list using user defened form works
-
test_on_pbnAdvanced_toggled()[source]
Test advanced button toggle behaviour works
-
test_on_pbnRemove_clicked()[source]
Test pressing remove works on key list
-
test_on_radHazard_toggled()[source]
Test hazard radio button toggle behaviour works
-
test_removeItemByKey()[source]
Test remove item by its key works
-
test_removeItemByValue()[source]
Test remove item by its value works
-
test_reset(thePrimaryKeywordsOnlyFlag=True)[source]
Test form reset works
-
test_setCategory()[source]
Test set category works
-
test_setSubcategoryList()[source]
Test set subcategory list works
-
test_showHelp()[source]
Test that help button works
-
gui.test_is_keywords_dialog.clearLayers()[source]
Clear all the loaded layers
-
gui.test_is_keywords_dialog.makePadangLayer()[source]
Helper function that returns a single predefined layer