summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-08-29 19:28:03 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-08-29 19:28:03 +0000
commitc068bc184c3c78b7bc9a1c5d43cc78c92bc41999 (patch)
tree5af685bfb4c609b8ede5fa73a1014e3d65de2234 /tests
parent2ca8cf36280d427ca396f14029f22421539a1fce (diff)
Merge branch 'url-tag-asvar'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/templates/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py
index 0eb5a2a586..f04bf0c33d 100644
--- a/tests/regressiontests/templates/tests.py
+++ b/tests/regressiontests/templates/tests.py
@@ -896,6 +896,11 @@ class Templates(unittest.TestCase):
'url-fail02': ('{% url no_such_view %}', {}, urlresolvers.NoReverseMatch),
'url-fail03': ('{% url regressiontests.templates.views.client %}', {}, urlresolvers.NoReverseMatch),
+ # {% url ... as var %}
+ 'url-asvar01': ('{% url regressiontests.templates.views.index as url %}', {}, ''),
+ 'url-asvar02': ('{% url regressiontests.templates.views.index as url %}{{ url }}', {}, '/url_tag/'),
+ 'url-asvar03': ('{% url no_such_view as url %}{{ url }}', {}, ''),
+
### CACHE TAG ######################################################
'cache01': ('{% load cache %}{% cache -1 test %}cache01{% endcache %}', {}, 'cache01'),
'cache02': ('{% load cache %}{% cache -1 test %}cache02{% endcache %}', {}, 'cache02'),