Skip to content
Permalink
Browse files
Fix classification test
  • Loading branch information
nyalldawson committed Apr 3, 2017
1 parent 3405298 commit 0b4262e60735c047a20a76fe99ad3402f9905bd5
Showing with 9 additions and 9 deletions.
  1. +9 −9 tests/src/python/test_qgsrasterlayer.py
@@ -608,15 +608,15 @@ def testPalettedClassDataFromLayer(self):
classes = QgsPalettedRasterRenderer.classDataFromRaster(layer10.dataProvider(), 1, r)
self.assertEqual(len(classes), 10)
self.assertEqual(classes[0].color.name(), '#c80000')
self.assertEqual(classes[1].color.name(), '#b41400')
self.assertEqual(classes[2].color.name(), '#a02800')
self.assertEqual(classes[3].color.name(), '#8c3c00')
self.assertEqual(classes[4].color.name(), '#785000')
self.assertEqual(classes[5].color.name(), '#646400')
self.assertEqual(classes[6].color.name(), '#507800')
self.assertEqual(classes[7].color.name(), '#3c8c00')
self.assertEqual(classes[8].color.name(), '#28a000')
self.assertEqual(classes[9].color.name(), '#14b400')
self.assertEqual(classes[1].color.name(), '#b21600')
self.assertEqual(classes[2].color.name(), '#9c2c00')
self.assertEqual(classes[3].color.name(), '#854200')
self.assertEqual(classes[4].color.name(), '#6f5900')
self.assertEqual(classes[5].color.name(), '#596f00')
self.assertEqual(classes[6].color.name(), '#428500')
self.assertEqual(classes[7].color.name(), '#2c9c00')
self.assertEqual(classes[8].color.name(), '#16b200')
self.assertEqual(classes[9].color.name(), '#00c800')

# 30 class layer
path = os.path.join(unitTestDataPath('raster'),

0 comments on commit 0b4262e

Please sign in to comment.