Skip to content
Permalink
Browse files

Better test debug output

  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent ebfa9f1 commit 6a7cd36ba729f5fec4ecb84c293be99862060e38
Showing with 3 additions and 4 deletions.
  1. +3 −4 tests/src/python/providertestbase.py
@@ -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]))

0 comments on commit 6a7cd36

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