﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11077	Django's built-in tests fail when using url reverse tags in default registration templates	srosro	nobody	"To reproduce:
Create a new project.  Create some registration templates (ie: templates/password_reset_form.html).  Use the {% url %} template tag. For example, {% url index %}.  Make sure you have a valid 'index' named url!

You should then get a failure when running the test suite:

{{{
#python manage.py test
Creating test database...
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Installing index for auth.Permission model
Installing index for auth.Message model
EE.EEEEEEE.F....


...


======================================================================
ERROR: test_confirm_complete (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Applications/Django/django-trunk/django/contrib/auth/tests/views.py"", line 71, in test_confirm_complete
    url, path = self._test_confirm_start()
  File ""/Applications/Django/django-trunk/django/contrib/auth/tests/views.py"", line 31, in _test_confirm_start
    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
  File ""/Applications/Django/django-trunk/django/test/client.py"", line 299, in post
    return self.request(**r)
  File ""/Applications/Django/django-trunk/django/core/handlers/base.py"", line 86, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File ""/Applications/Django/django-trunk/django/contrib/auth/views.py"", line 92, in password_reset
    form.save(**opts)
  File ""/Applications/Django/django-trunk/django/contrib/auth/forms.py"", line 135, in save
    t.render(Context(c)), None, [user.email])
  File ""/Applications/Django/django-trunk/django/test/utils.py"", line 15, in instrumented_test_render
    return self.nodelist.render(context)
  File ""/Applications/Django/django-trunk/django/template/__init__.py"", line 768, in render
    bits.append(self.render_node(node, context))
  File ""/Applications/Django/django-trunk/django/template/debug.py"", line 81, in render_node
    raise wrapped
TemplateSyntaxError: Caught an exception while rendering: Reverse for 'testing1234.index' with arguments '()' and keyword arguments '{}' not found.

Original Traceback (most recent call last):
  File ""/Applications/Django/django-trunk/django/template/debug.py"", line 71, in render_node
    result = node.render(context)
  File ""/Applications/Django/django-trunk/django/template/defaulttags.py"", line 387, in render
    args=args, kwargs=kwargs)
  File ""/Applications/Django/django-trunk/django/core/urlresolvers.py"", line 262, in reverse
    *args, **kwargs)))
  File ""/Applications/Django/django-trunk/django/core/urlresolvers.py"", line 251, in reverse
    ""arguments '%s' not found."" % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'testing1234.index' with arguments '()' and keyword arguments '{}' not found.
}}}"	Bug	closed	Testing framework		Normal	wontfix		sam@… r.dav.lc@… frank@…	Accepted	1	0	0	1	0	0
