Skip to content
Permalink
Browse files

Update test_qgsprojectionselectionwidgets.py

  • Loading branch information
3nids committed May 26, 2018
1 parent 6d66375 commit 4bb6e91a753ddf6b0688d561b008923f4129c5a2
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/src/python/test_qgsprojectionselectionwidgets.py
@@ -115,6 +115,14 @@ def testShowingNotSetOption(self):
self.assertTrue(w.optionVisible(QgsProjectionSelectionWidget.CurrentCrs))
self.assertTrue(w.optionVisible(QgsProjectionSelectionWidget.CrsNotSet))

def testSignal(self):
w = QgsProjectionSelectionWidget()
w.show()
spy = QSignalSpy(w.crsChanged)
w.setCrs(QgsCoordinateReferenceSystem('EPSG:3111'))
self.assertEqual(w.crs().authid(), 'EPSG:3111')
self.assertEqual(len(spy), 1)

def testTreeWidgetGettersSetters(self):
""" basic tests for QgsProjectionSelectionTreeWidget """
w = QgsProjectionSelectionTreeWidget()

0 comments on commit 4bb6e91

Please sign in to comment.
You can’t perform that action at this time.