From 613b5689f55f6615c1a83d78a511c1ca24f6715a Mon Sep 17 00:00:00 2001 From: Ben Bangert Date: Tue, 10 Nov 2009 18:16:19 -0800 Subject: * Adding regular expression builder for entire regexp for faster rejection in a single regexp match should none of the routes match. --HG-- branch : trunk --- tests/test_functional/test_recognition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_functional/test_recognition.py b/tests/test_functional/test_recognition.py index 68a023c..a92cc11 100644 --- a/tests/test_functional/test_recognition.py +++ b/tests/test_functional/test_recognition.py @@ -651,7 +651,7 @@ class TestRecognition(unittest.TestCase): resultdict, route_obj, debug = m.routematch('/nowhere') eq_(None, resultdict) eq_(None, route_obj) - eq_(len(debug), 1) + eq_(len(debug), 0) def test_match_debug(self): m = Mapper() @@ -667,7 +667,7 @@ class TestRecognition(unittest.TestCase): resultdict, route_obj, debug = m.match('/nowhere') eq_(None, resultdict) eq_(route_obj, None) - eq_(len(debug), 1) + eq_(len(debug), 0) def test_conditions(self): m = Mapper() -- cgit v1.2.1