Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #7521 -- Re-reverted [7716] (originally reverted in [7726]), now…
… modified to use the new TestCase urlpattern framework. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information
1 parent
4b93eed
commit 8cb128e
Showing
3 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,56 @@ | |||
[ | |||
{ | |||
"pk": "1", | |||
"model": "auth.user", | |||
"fields": { | |||
"username": "testclient", | |||
"first_name": "Test", | |||
"last_name": "Client", | |||
"is_active": true, | |||
"is_superuser": false, | |||
"is_staff": false, | |||
"last_login": "2006-12-17 07:03:31", | |||
"groups": [], | |||
"user_permissions": [], | |||
"password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161", | |||
"email": "testclient@example.com", | |||
"date_joined": "2006-12-17 07:03:31" | |||
} | |||
}, | |||
{ | |||
"pk": "2", | |||
"model": "auth.user", | |||
"fields": { | |||
"username": "inactive", | |||
"first_name": "Inactive", | |||
"last_name": "User", | |||
"is_active": false, | |||
"is_superuser": false, | |||
"is_staff": false, | |||
"last_login": "2006-12-17 07:03:31", | |||
"groups": [], | |||
"user_permissions": [], | |||
"password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161", | |||
"email": "testclient@example.com", | |||
"date_joined": "2006-12-17 07:03:31" | |||
} | |||
}, | |||
{ | |||
"pk": "3", | |||
"model": "auth.user", | |||
"fields": { | |||
"username": "staff", | |||
"first_name": "Staff", | |||
"last_name": "Member", | |||
"is_active": true, | |||
"is_superuser": false, | |||
"is_staff": true, | |||
"last_login": "2006-12-17 07:03:31", | |||
"groups": [], | |||
"user_permissions": [], | |||
"password": "sha1$6efc0$f93efe9fd7542f25a7be94871ea45aa95de57161", | |||
"email": "staffmember@example.com", | |||
"date_joined": "2006-12-17 07:03:31" | |||
} | |||
} | |||
] |
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
# These URLs are normally mapped to /admin/urls.py. This URLs file is | |||
# provided as a convenience to those who want to deploy these URLs elsewhere. | |||
# This file is also used to provide a reliable view deployment for test purposes. | |||
|
|||
from django.conf.urls.defaults import * | |||
|
|||
urlpatterns = patterns('', | |||
('^logout/$', 'django.contrib.auth.views.logout'), | |||
('^password_change/$', 'django.contrib.auth.views.password_change'), | |||
('^password_change/done/$', 'django.contrib.auth.views.password_change_done'), | |||
('^password_reset/$', 'django.contrib.auth.views.password_reset') | |||
) | |||
|