From 3dffcb5579a5a64f1869b9b46a379d519079d805 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 29 May 2018 21:39:31 -0400 Subject: [PATCH] Relaxed a GDAL raster test. The exact metadata depends on the GDAL version. --- tests/gis_tests/gdal_tests/test_raster.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/gis_tests/gdal_tests/test_raster.py b/tests/gis_tests/gdal_tests/test_raster.py index 936f9f1204..42eacb9ea5 100644 --- a/tests/gis_tests/gdal_tests/test_raster.py +++ b/tests/gis_tests/gdal_tests/test_raster.py @@ -284,10 +284,9 @@ class GDALRasterTests(SimpleTestCase): self.rs.metadata return - self.assertEqual( - self.rs.metadata, - {'DEFAULT': {'AREA_OR_POINT': 'Area'}, 'IMAGE_STRUCTURE': {'INTERLEAVE': 'BAND'}}, - ) + data = self.rs.metadata + self.assertEqual(data['DEFAULT'], {'AREA_OR_POINT': 'Area'}) + self.assertEqual(data['IMAGE_STRUCTURE'], {'INTERLEAVE': 'BAND'}) # Create file-based raster from scratch source = GDALRaster({