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

Bases: unittest.case.TestCase

Test Import Dialog widget

canvas_mouse_moved(point)[source]

Slot for when the mouse moves on the canvas.

extent_defined(extent, crs)[source]

Slot for when extents are changed in dialog.

Parameters:
  • extent (QgsRectangle) – Rectangle that was created.
  • crs (QgsCoordinateReferenceSystem) – Coordiate reference system.
setUp()[source]

Runs before each test.

tearDown()[source]

Runs after each test.

test_mouse_drag(*args, **kwargs)[source]
test_spinboxes()[source]

Test validate extent method.