-
-
Save jezdez/070ed7b16247f04ae388 to your computer and use it in GitHub Desktop.
r14733 regressions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
FAIL: test_view_authenticated_flatpage (django.contrib.flatpages.tests.csrf.FlatpageCSRFTests) | |
A flatpage served through a view can require authentication | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/django/contrib/flatpages/tests/csrf.py", line 48, in test_view_authenticated_flatpage | |
self.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fflatpage_root%2Fsekrit%2F' != 'http://testserver/accounts/login/?next=/flatpage_root/sekrit/' : Response redirected to 'http://testserver/accounts/login/?next=%2Fflatpage_root%2Fsekrit%2F', expected 'http://testserver/accounts/login/?next=/flatpage_root/sekrit/' | |
====================================================================== | |
FAIL: test_fallback_authenticated_flatpage (django.contrib.flatpages.tests.middleware.FlatpageMiddlewareTests) | |
A flatpage served by the middleware can require authentication | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/django/contrib/flatpages/tests/middleware.py", line 65, in test_fallback_authenticated_flatpage | |
self.assertRedirects(response, '/accounts/login/?next=/sekrit/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fsekrit%2F' != 'http://testserver/accounts/login/?next=/sekrit/' : Response redirected to 'http://testserver/accounts/login/?next=%2Fsekrit%2F', expected 'http://testserver/accounts/login/?next=/sekrit/' | |
====================================================================== | |
FAIL: test_view_authenticated_flatpage (django.contrib.flatpages.tests.middleware.FlatpageMiddlewareTests) | |
A flatpage served through a view can require authentication | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/django/contrib/flatpages/tests/middleware.py", line 44, in test_view_authenticated_flatpage | |
self.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fflatpage_root%2Fsekrit%2F' != 'http://testserver/accounts/login/?next=/flatpage_root/sekrit/' : Response redirected to 'http://testserver/accounts/login/?next=%2Fflatpage_root%2Fsekrit%2F', expected 'http://testserver/accounts/login/?next=/flatpage_root/sekrit/' | |
====================================================================== | |
FAIL: test_view_authenticated_flatpage (django.contrib.flatpages.tests.views.FlatpageViewTests) | |
A flatpage served through a view can require authentication | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/django/contrib/flatpages/tests/views.py", line 45, in test_view_authenticated_flatpage | |
self.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fflatpage_root%2Fsekrit%2F' != 'http://testserver/accounts/login/?next=/flatpage_root/sekrit/' : Response redirected to 'http://testserver/accounts/login/?next=%2Fflatpage_root%2Fsekrit%2F', expected 'http://testserver/accounts/login/?next=/flatpage_root/sekrit/' | |
====================================================================== | |
FAIL: test_logout (modeltests.test_client.models.ClientTest) | |
Request a logout after logging in | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/modeltests/test_client/models.py", line 347, in test_logout | |
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Ftest_client%2Flogin_protected_view%2F' != 'http://testserver/accounts/login/?next=/test_client/login_protected_view/' : Response redirected to 'http://testserver/accounts/login/?next=%2Ftest_client%2Flogin_protected_view%2F', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_view/' | |
====================================================================== | |
FAIL: test_view_with_login (modeltests.test_client.models.ClientTest) | |
Request a page that is protected with @login_required | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/modeltests/test_client/models.py", line 277, in test_view_with_login | |
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_view/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Ftest_client%2Flogin_protected_view%2F' != 'http://testserver/accounts/login/?next=/test_client/login_protected_view/' : Response redirected to 'http://testserver/accounts/login/?next=%2Ftest_client%2Flogin_protected_view%2F', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_view/' | |
====================================================================== | |
FAIL: test_view_with_login_and_custom_redirect (modeltests.test_client.models.ClientTest) | |
Request a page that is protected with @login_required(redirect_field_name='redirect_to') | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/modeltests/test_client/models.py", line 309, 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 "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?redirect_to=%2Ftest_client%2Flogin_protected_view_custom_redirect%2F' != 'http://testserver/accounts/login/?redirect_to=/test_client/login_protected_view_custom_redirect/' : Response redirected to 'http://testserver/accounts/login/?redirect_to=%2Ftest_client%2Flogin_protected_view_custom_redirect%2F', expected 'http://testserver/accounts/login/?redirect_to=/test_client/login_protected_view_custom_redirect/' | |
====================================================================== | |
FAIL: test_view_with_method_login (modeltests.test_client.models.ClientTest) | |
Request a page that is protected with a @login_required method | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/modeltests/test_client/models.py", line 293, in test_view_with_method_login | |
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Ftest_client%2Flogin_protected_method_view%2F' != 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/' : Response redirected to 'http://testserver/accounts/login/?next=%2Ftest_client%2Flogin_protected_method_view%2F', expected 'http://testserver/accounts/login/?next=/test_client/login_protected_method_view/' | |
====================================================================== | |
FAIL: test_view_with_method_permissions (modeltests.test_client.models.ClientTest) | |
Request a page that is protected with a @permission_required method | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/modeltests/test_client/models.py", line 371, in test_view_with_method_permissions | |
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Ftest_client%2Fpermission_protected_method_view%2F' != 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/' : Response redirected to 'http://testserver/accounts/login/?next=%2Ftest_client%2Fpermission_protected_method_view%2F', expected 'http://testserver/accounts/login/?next=/test_client/permission_protected_method_view/' | |
====================================================================== | |
FAIL: test_view_with_permissions (modeltests.test_client.models.ClientTest) | |
Request a page that is protected with @permission_required | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/modeltests/test_client/models.py", line 354, in test_view_with_permissions | |
self.assertRedirects(response, 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Ftest_client%2Fpermission_protected_view%2F' != 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/' : Response redirected to 'http://testserver/accounts/login/?next=%2Ftest_client%2Fpermission_protected_view%2F', expected 'http://testserver/accounts/login/?next=/test_client/permission_protected_view/' | |
====================================================================== | |
FAIL: testApprovePermissions (regressiontests.comment_tests.tests.moderation_view_tests.ApproveViewTests) | |
The delete view should only be accessible to 'moderators' | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/regressiontests/comment_tests/tests/moderation_view_tests.py", line 125, in testApprovePermissions | |
self.assertEqual(response["Location"], "http://testserver/accounts/login/?next=/approve/%d/" % pk) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fapprove%2F1%2F' != 'http://testserver/accounts/login/?next=/approve/1/' | |
====================================================================== | |
FAIL: testDeletePermissions (regressiontests.comment_tests.tests.moderation_view_tests.DeleteViewTests) | |
The delete view should only be accessible to 'moderators' | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/regressiontests/comment_tests/tests/moderation_view_tests.py", line 81, in testDeletePermissions | |
self.assertEqual(response["Location"], "http://testserver/accounts/login/?next=/delete/%d/" % pk) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fdelete%2F1%2F' != 'http://testserver/accounts/login/?next=/delete/1/' | |
====================================================================== | |
FAIL: testFlagAnon (regressiontests.comment_tests.tests.moderation_view_tests.FlagViewTests) | |
GET/POST the flag view while not logged in: redirect to log in. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/regressiontests/comment_tests/tests/moderation_view_tests.py", line 40, in testFlagAnon | |
self.assertEqual(response["Location"], "http://testserver/accounts/login/?next=/flag/%d/" % pk) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fflag%2F1%2F' != 'http://testserver/accounts/login/?next=/flag/1/' | |
====================================================================== | |
FAIL: test_create_restricted (regressiontests.generic_views.edit.CreateViewTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/regressiontests/generic_views/edit.py", line 77, in test_create_restricted | |
self.assertRedirects(res, 'http://testserver/accounts/login/?next=/edit/authors/create/restricted/') | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fedit%2Fauthors%2Fcreate%2Frestricted%2F' != 'http://testserver/accounts/login/?next=/edit/authors/create/restricted/' : Response redirected to 'http://testserver/accounts/login/?next=%2Fedit%2Fauthors%2Fcreate%2Frestricted%2F', expected 'http://testserver/accounts/login/?next=/edit/authors/create/restricted/' | |
====================================================================== | |
FAIL: test_login_required_view (regressiontests.views.tests.generic.create_update.CreateObjectTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jezdez/Code/git/django/tests/regressiontests/views/tests/generic/create_update.py", line 19, in test_login_required_view | |
self.assertRedirects(response, '/accounts/login/?next=%s' % view_url) | |
File "/Users/jezdez/Code/git/django/django/test/testcases.py", line 401, in assertRedirects | |
(url, expected_url)) | |
AssertionError: 'http://testserver/accounts/login/?next=%2Fviews%2Fcreate_update%2Fmember%2Fcreate%2Farticle%2F' != 'http://testserver/accounts/login/?next=/views/create_update/member/create/article/' : Response redirected to 'http://testserver/accounts/login/?next=%2Fviews%2Fcreate_update%2Fmember%2Fcreate%2Farticle%2F', expected 'http://testserver/accounts/login/?next=/views/create_update/member/create/article/' | |
---------------------------------------------------------------------- | |
Ran 3119 tests in 285.508s | |
FAILED (failures=15, skipped=52, expected failures=2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment