﻿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
6200	Unit tests fail if provided settings use a different LOGIN_URL	Jason Yan <tailofthesun@…>	nobody	"Using a value different from the default value for LOGIN_URL causes model tests to fail.

{{{
======================================================================
FAIL: Request a logout after logging in
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py"", line 315, in test_logout
    self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/')
  File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py"", line 94, in assertRedirects
    ""Response redirected to '%s', expected '%s'"" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/login_protected_view/', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_view/'

======================================================================
FAIL: Request a page that is protected with @login_required
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py"", line 245, in test_view_with_login
    self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/')
  File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py"", line 94, in assertRedirects
    ""Response redirected to '%s', expected '%s'"" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/login_protected_view/', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_view/'

======================================================================
FAIL: Request a page that is protected with @login_required(redirect_field_name='redirect_to')
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py"", line 277, in test_view_with_login_and_custom_redirect
    self.assertRedirects(response, 'http://testserver/accounts/login/?redirect_to=/test_client/login_protected_view_custom_redirect/')
  File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py"", line 94, in assertRedirects
    ""Response redirected to '%s', expected '%s'"" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?redirect_to=/test_client/login_protected_view_custom_redirect/', expected 'http://testserver/accounts/login/?redirect_to=/test_client/login_protected_view_custom_redirect/'

======================================================================
FAIL: Request a page that is protected with a @login_required method
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py"", line 261, in test_view_with_method_login
    self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/')
  File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py"", line 94, in assertRedirects
    ""Response redirected to '%s', expected '%s'"" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/login_protected_method_view/', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/'

======================================================================
FAIL: Request a page that is protected with a @permission_required method
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py"", line 339, in test_view_with_method_permissions
    self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/')
  File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py"", line 94, in assertRedirects
    ""Response redirected to '%s', expected '%s'"" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/permission_protected_method_view/', expected 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/'

======================================================================
FAIL: Request a page that is protected with @permission_required
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""/Users/jason/Projects/django-svn-trunk/tests/modeltests/test_client/models.py"", line 322, in test_view_with_permissions
    self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/')
  File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/testcases.py"", line 94, in assertRedirects
    ""Response redirected to '%s', expected '%s'"" % (url, expected_url))
AssertionError: Response redirected to 'http://dev:8000/login/?next=/test_client/permission_protected_view/', expected 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/'
}}}
}}}"		closed	Testing framework	dev		fixed			Unreviewed	1	0	0	0	0	0
