aboutsummaryrefslogtreecommitdiffstats
path: root/tests/models.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-18 21:06:13 +0200
committerAymeric Augustin2013-10-18 21:08:02 +0200
commitfbd16d85245184f40f869026cedc4e0440dde17b (patch)
treebb3834645f45bb9cfd0dbe1c7bc811cf66effb8f /tests/models.py
parentbd345551eb1c70cf365c93cbc2883a3d809e6ae7 (diff)
downloaddjango-debug-toolbar-fbd16d85245184f40f869026cedc4e0440dde17b.tar.bz2
Test that non-string view arguments are supported.
Close #43.
Diffstat (limited to 'tests/models.py')
-rw-r--r--tests/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/models.py b/tests/models.py
index e69de29..24358c0 100644
--- a/tests/models.py
+++ b/tests/models.py
@@ -0,0 +1,10 @@
+# coding: utf-8
+
+from __future__ import unicode_literals
+
+from django.utils import six
+
+
+class NonAsciiRepr(object):
+ def __repr__(self):
+ return 'nôt åscíì' if six.PY3 else 'nôt åscíì'.encode('utf-8')