summaryrefslogtreecommitdiff
path: root/tests/modeltests/test_client/fixtures/testdata.json
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2007-07-12 15:26:37 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2007-07-12 15:26:37 +0000
commitb8d0dc73c762bedc0a36bb380cded62a7b3ea162 (patch)
tree99466bf5a884ee384e3efa57e28f6880481dd07b /tests/modeltests/test_client/fixtures/testdata.json
parentb9232cd955496b69444ca458fa2ba45ab9e25c34 (diff)
Fixed #4526 -- Modified the test Client login method to fail when a user is inactive. Thanks, marcin@elksoft.pl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/test_client/fixtures/testdata.json')
-rw-r--r--tests/modeltests/test_client/fixtures/testdata.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/modeltests/test_client/fixtures/testdata.json b/tests/modeltests/test_client/fixtures/testdata.json
index 5c9e415240..e9d3ebe9a8 100644
--- a/tests/modeltests/test_client/fixtures/testdata.json
+++ b/tests/modeltests/test_client/fixtures/testdata.json
@@ -16,5 +16,23 @@
"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"
+ }
}
] \ No newline at end of file