diff options
| author | Aymeric Augustin | 2013-10-18 21:06:13 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-10-18 21:08:02 +0200 | 
| commit | fbd16d85245184f40f869026cedc4e0440dde17b (patch) | |
| tree | bb3834645f45bb9cfd0dbe1c7bc811cf66effb8f /tests/views.py | |
| parent | bd345551eb1c70cf365c93cbc2883a3d809e6ae7 (diff) | |
| download | django-debug-toolbar-fbd16d85245184f40f869026cedc4e0440dde17b.tar.bz2 | |
Test that non-string view arguments are supported.
Close #43.
Diffstat (limited to 'tests/views.py')
| -rw-r--r-- | tests/views.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/tests/views.py b/tests/views.py index 5bafc97..2fba2a7 100644 --- a/tests/views.py +++ b/tests/views.py @@ -7,6 +7,8 @@ from django.http import HttpResponse  from django.shortcuts import render  from django.utils import six +from .models import NonAsciiRepr +  def execute_sql(request):      list(User.objects.all()) @@ -14,9 +16,6 @@ def execute_sql(request):  def non_ascii_context(request): -    class NonAsciiRepr(object): -        def __repr__(self): -            return 'nôt åscíì' if six.PY3 else 'nôt åscíì'.encode('utf-8')      return render(request, 'basic.html', {'title': NonAsciiRepr()}) | 
