Skip to content

Commit

Permalink
Better test debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent ebfa9f1 commit 6a7cd36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/src/python/providertestbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,10 @@ def testMaxValue(self):
self.assertEqual(max_value, 300)

def testExtent(self):
reference = QgsGeometry.fromRect(
QgsRectangle(-71.123, 66.33, -65.32, 78.3))
provider_extent = QgsGeometry.fromRect(self.provider.extent())
reference = QgsRectangle(-71.123, 66.33, -65.32, 78.3)
provider_extent = self.provider.extent()

self.assertTrue(QgsGeometry.compare(provider_extent.asPolygon()[0], reference.asPolygon()[0], 0.00001))
self.assertEqual(provider_extent.toString(2), reference.toString(2))

def testUnique(self):
self.assertEqual(set(self.provider.uniqueValues(1)), set([-200, 100, 200, 300, 400]))
Expand Down

0 comments on commit 6a7cd36

Please sign in to comment.