summaryrefslogtreecommitdiff
path: root/tests/regressiontests/forms/util.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-12-05 09:40:16 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-12-05 09:40:16 +0000
commit3dce17ddc4a891856a0831f5f26716675d7a3bab (patch)
treedd3daa822edbf0ff28b945bfda0276365831a423 /tests/regressiontests/forms/util.py
parent0d7b6884df5efc6c9eafc8a81f39ccfb8bc931f5 (diff)
queryset-refactor: Fixed a couple of differences between trunk and this branch that were caused by merge errors.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@6896 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/forms/util.py')
-rw-r--r--tests/regressiontests/forms/util.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/util.py b/tests/regressiontests/forms/util.py
index 4f81709082..bfaf73f6bc 100644
--- a/tests/regressiontests/forms/util.py
+++ b/tests/regressiontests/forms/util.py
@@ -42,4 +42,11 @@ u''
# Can take a mixture in a list.
>>> print ValidationError(["First error.", u"Not \u03C0.", ugettext_lazy("Error.")]).messages
<ul class="errorlist"><li>First error.</li><li>Not π.</li><li>Error.</li></ul>
+
+>>> class VeryBadError:
+... def __unicode__(self): return u"A very bad error."
+
+# Can take a non-string.
+>>> print ValidationError(VeryBadError()).messages
+<ul class="errorlist"><li>A very bad error.</li></ul>
"""