Skip to content

Commit

Permalink
Update test_qgsprojectionselectionwidgets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 26, 2018
1 parent 6d66375 commit 4bb6e91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/src/python/test_qgsprojectionselectionwidgets.py
Expand Up @@ -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()
Expand Down

0 comments on commit 4bb6e91

Please sign in to comment.