also test return value from add_wkb
This commit is contained in:
parent
e36081a5c0
commit
537ce09336
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue