summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNiall Dalton <niall.dalton12@gmail.com>2017-09-18 20:39:36 -0400
committerTim Graham <timograham@gmail.com>2017-09-21 09:42:38 -0400
commit4fe6588da372cdcc14f3e981d4bb960cf905dc74 (patch)
tree390119287435cad814453d87514682c218099b09 /tests
parent52eb5b289e9a0c2dc2302437b9590d0ce5ae0455 (diff)
Fixed #28576 -- Added color interpretation method to GDALBand.
Diffstat (limited to 'tests')
-rw-r--r--tests/gis_tests/gdal_tests/test_raster.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gis_tests/gdal_tests/test_raster.py b/tests/gis_tests/gdal_tests/test_raster.py
index 9534681d44..219600fb6a 100644
--- a/tests/gis_tests/gdal_tests/test_raster.py
+++ b/tests/gis_tests/gdal_tests/test_raster.py
@@ -562,6 +562,8 @@ class GDALBandTests(SimpleTestCase):
self.assertEqual(self.band.description, '')
self.assertEqual(self.band.datatype(), 1)
self.assertEqual(self.band.datatype(as_string=True), 'GDT_Byte')
+ self.assertEqual(self.band.color_interp(), 1)
+ self.assertEqual(self.band.color_interp(as_string=True), 'GCI_GrayIndex')
self.assertEqual(self.band.nodata_value, 15)
if numpy:
data = self.band.data()