aboutsummaryrefslogtreecommitdiffstats
path: root/tests/views.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-17 21:30:15 +0200
committerAymeric Augustin2013-10-17 21:30:15 +0200
commit4d829c450327e015ee5d6919f6f5029079b7ebe0 (patch)
treecada8a5dec45e5dd2a138bc47c33002eb7278d5a /tests/views.py
parentdaf14b5c363d4aef842d4a46eb1c6b603e5c10b7 (diff)
downloaddjango-debug-toolbar-4d829c450327e015ee5d6919f6f5029079b7ebe0.tar.bz2
Support DEFAULT_CHARSET != 'utf-8'. Fix #15.
Diffstat (limited to 'tests/views.py')
-rw-r--r--tests/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/views.py b/tests/views.py
index ec9f30e..f756023 100644
--- a/tests/views.py
+++ b/tests/views.py
@@ -3,12 +3,17 @@ from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.http import HttpResponse
+
def execute_sql(request):
list(User.objects.all())
-
return HttpResponse()
+
+def regular_view(request, title='Test'):
+ content = '<html><head><title>%s</title><body></body></html>' % title
+ return HttpResponse(content)
+
+
def resolving_view(request, arg1, arg2):
# see test_url_resolving in tests.py
return HttpResponse()
-