Permalink
Browse files

also test return value from add_wkb

  • Loading branch information...
1 parent e36081a commit 537ce09336bc0819f404fbe069e72e68d6e855f0 @springmeyer springmeyer committed Jul 20, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/python_tests/geometry_io_test.py
View
6 tests/python_tests/geometry_io_test.py
@@ -59,7 +59,11 @@ def setup():
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):

0 comments on commit 537ce09

Please sign in to comment.