also test return value from add_wkb

This commit is contained in:
Dane Springmeyer 2012-07-20 15:13:36 -07:00
parent e36081a5c0
commit 537ce09336

View file

@ -59,7 +59,11 @@ wkbs = [
def test_wkb_parsing():
for wkb in wkbs:
path = mapnik.Path()
path.add_wkb(unhexlify(wkb[2]))
success = path.add_wkb(unhexlify(wkb[2]))
if wkb[0] > 0:
eq_(success,True)
else:
eq_(success,False)
eq_(wkb[0],len(path))
def compare_wkb_from_wkt(wkt,num=None):