also test alternative is falsey method
This commit is contained in:
parent
6901a4ac8c
commit
22b41a7c6d
1 changed files with 2 additions and 0 deletions
|
@ -302,6 +302,8 @@ def test_expressions_for_thruthyness():
|
|||
eq_(expr.to_bool(f),eq[1])
|
||||
expr = mapnik.Expression("not [prop]")
|
||||
eq_(expr.to_bool(f),not eq[1])
|
||||
expr = mapnik.Expression("! [prop]")
|
||||
eq_(expr.to_bool(f),not eq[1])
|
||||
# also test if feature does not have property at all
|
||||
f2 = mapnik.Feature(context,1)
|
||||
# no property existing will return value_null since
|
||||
|
|
Loading…
Add table
Reference in a new issue