diff --git a/django/contrib/auth/tests/remote_user.py b/django/contrib/auth/tests/remote_user.py
index 449216d..fcba24a 100644
a
|
b
|
|
1 | 1 | from datetime import datetime |
2 | 2 | |
3 | 3 | from django.conf import settings |
| 4 | from django.conf.urls.defaults import patterns |
4 | 5 | from django.contrib.auth.backends import RemoteUserBackend |
5 | 6 | from django.contrib.auth.models import AnonymousUser, User |
| 7 | from django.http import HttpResponse |
| 8 | from django.shortcuts import render_to_response |
| 9 | from django.template import Template, RequestContext |
6 | 10 | from django.test import TestCase |
7 | 11 | |
8 | 12 | |
| 13 | def remote_user_auth_view(request): |
| 14 | t = Template("Username is {{ user }}.") |
| 15 | c = RequestContext(request, {}) |
| 16 | return HttpResponse(t.render(c)) |
| 17 | |
| 18 | urlpatterns = patterns('', |
| 19 | (r'^$', remote_user_auth_view), |
| 20 | ) |
| 21 | |
9 | 22 | class RemoteUserTest(TestCase): |
10 | 23 | |
| 24 | urls = 'django.contrib.auth.tests.remote_user' |
11 | 25 | middleware = 'django.contrib.auth.middleware.RemoteUserMiddleware' |
12 | 26 | backend = 'django.contrib.auth.backends.RemoteUserBackend' |
13 | 27 | |