Skip to content
Permalink
Browse files

fix transform context test

  • Loading branch information
3nids authored and nyalldawson committed Dec 15, 2017
1 parent 6188b16 commit 2fb3c57600daafd1bdff83f945e1ebed12d9758e
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/test_qgscoordinatetransformcontext.py
@@ -285,11 +285,11 @@ def testWriteReadXmlSingleVariant(self):
# save to xml
doc = QDomDocument("testdoc")
elem = doc.createElement("test")
context.writeXml(elem, doc, QgsReadWriteContext())
context.writeXml(elem, QgsReadWriteContext())

# restore from xml
context2 = QgsCoordinateTransformContext()
context2.readXml(elem, doc, QgsReadWriteContext())
context2.readXml(elem, QgsReadWriteContext())

# check result
self.assertEqual(context2.sourceDatumTransforms(), {'EPSG:3111': 1, 'EPSG:28356': 2})
@@ -311,11 +311,11 @@ def testWriteReadXml(self):
# save to xml
doc = QDomDocument("testdoc")
elem = doc.createElement("test")
context.writeXml(elem, doc, QgsReadWriteContext())
context.writeXml(elem, QgsReadWriteContext())

# restore from xml
context2 = QgsCoordinateTransformContext()
context2.readXml(elem, doc, QgsReadWriteContext())
context2.readXml(elem, QgsReadWriteContext())

# check result
self.assertEqual(context2.sourceDestinationDatumTransforms(), {('EPSG:3111', 'EPSG:4283'): QgsCoordinateTransform.TransformPair(1, 2),

0 comments on commit 2fb3c57

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