Skip to content
Browse files

allow the pure white test to pass if its nearly white

  • Loading branch information...
1 parent c0fd680 commit 43280f17c4aa73ae91402393dcb3e3b5bc93f930 @springmeyer springmeyer committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/python_tests/raster_symbolizer_test.py
View
2 tests/python_tests/raster_symbolizer_test.py
@@ -151,7 +151,7 @@ def test_raster_with_alpha_blends_correctly_with_background():
mapnik.render(map, mim)
imdata = mim.tostring()
# All white is expected
- eq_(contains_word('\xff\xff\xff\xff', imdata),True,'Image expected to contain true white, instead found %s' % get_unique_colors(mim))
+ eq_(get_unique_colors(mim),['rgba(254,254,254,255)'])
def test_raster_warping():
lyrSrs = "+init=epsg:32630"

0 comments on commit 43280f1

Please sign in to comment.
Something went wrong with that request. Please try again.