fixed assertion in test_dataraster_coloring
This commit is contained in:
parent
c06b966eeb
commit
1c561fa2ba
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue