From 429eed509074664575d284eaffd3da8bb59e10bc Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 28 Feb 2011 21:20:16 +0000 Subject: [PATCH] boolean evals of expressions return strings --- tests/python_tests/filter_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_tests/filter_test.py b/tests/python_tests/filter_test.py index 5fd5db779..0a060d3c7 100644 --- a/tests/python_tests/filter_test.py +++ b/tests/python_tests/filter_test.py @@ -98,13 +98,13 @@ def test_regex_match(): f = mapnik2.Feature(0) f["name"] = 'test' expr = mapnik2.Expression("[name].match('test')") - eq_(expr.evaluate(f),1) # 1 == True + eq_(expr.evaluate(f),'1') # 1 == True def test_unicode_regex_match(): f = mapnik2.Feature(0) f["name"] = 'Québec' expr = mapnik2.Expression("[name].match('Québec')") - eq_(expr.evaluate(f),1) # 1 == True + eq_(expr.evaluate(f),'1') # 1 == True def test_regex_replace(): f = mapnik2.Feature(0)