aboutsummaryrefslogtreecommitdiffstats
path: root/tests/views.py
diff options
context:
space:
mode:
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()
-