allow the pure white test to pass if its nearly white

This commit is contained in:
Dane Springmeyer 2012-10-03 18:53:23 -07:00
parent c0fd6802ed
commit 43280f17c4

View file

@ -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"