From 1c561fa2baa2f53bf5e7f1f515a78c3536364c51 Mon Sep 17 00:00:00 2001 From: Alberto Valverde Date: Wed, 17 Mar 2010 12:35:41 +0000 Subject: [PATCH] fixed assertion in test_dataraster_coloring --- tests/python_tests/raster_symbolizer_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_tests/raster_symbolizer_test.py b/tests/python_tests/raster_symbolizer_test.py index f7ce99cec..1c10d84f3 100644 --- a/tests/python_tests/raster_symbolizer_test.py +++ b/tests/python_tests/raster_symbolizer_test.py @@ -52,9 +52,9 @@ def test_dataraster_coloring(): # save a png somewhere so we can see it save_data('test_dataraster_coloring.png', im.tostring('png')) imdata = im.tostring() - assert len(imdata) > 0 + bytes = [imdata[i:i+4] for i in xrange(0, len(imdata), 4)] # we have some values in the [20,30) interval so check that they're colored - assert '\xff\xff\xff\x00' in imdata + assert '\xff\xff\x00\xff' in bytes def test_dataraster_query_point(): srs = '+init=epsg:32630'