From 783d76cbfcccf19ac3e905db06f4237443a46afe Mon Sep 17 00:00:00 2001 From: Jason Choy Date: Tue, 8 May 2012 10:24:46 +0100 Subject: [PATCH] Test strip and add space still works when extra_params is a callable --- tornado/test/escape_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tornado/test/escape_test.py b/tornado/test/escape_test.py index 4baa70d2..defca1ba 100644 --- a/tornado/test/escape_test.py +++ b/tornado/test/escape_test.py @@ -125,6 +125,10 @@ linkify_tests = [ ("www.external-link.com and www.internal-link.com/blogs extra", {"extra_params": lambda(href):'class="internal"' if href.startswith("http://www.internal-link.com") else 'rel="nofollow" class="external"'}, u'www.external-link.com and www.internal-link.com/blogs extra'), + + ("www.external-link.com", + {"extra_params": lambda(href):' rel="nofollow" class="external" '}, + u'www.external-link.com'), ]