From 9de774aad8bf3c91488c8925c31f71acbc2c3fb4 Mon Sep 17 00:00:00 2001
From: Malcolm Tredinnick
Date: Mon, 14 May 2007 10:18:29 +0000
Subject: [PATCH] unicode: Improved the test slightly for RadioSelect widgets
with unicode choices.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
---
tests/regressiontests/forms/regressions.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/regressiontests/forms/regressions.py b/tests/regressiontests/forms/regressions.py
index de239e71f4..0e0b0a7f3d 100644
--- a/tests/regressiontests/forms/regressions.py
+++ b/tests/regressiontests/forms/regressions.py
@@ -30,10 +30,10 @@ There were some problems with form translations in #3600
# >>> deactivate()
Unicode decoding problems...
->>> GENDERS = (('0', u'En tied\xe4'), ('1', u'Mies'), ('2', u'Nainen'))
+>>> GENDERS = ((u'\xc5', u'En tied\xe4'), (u'\xf8', u'Mies'), (u'\xdf', u'Nainen'))
>>> class SomeForm(Form):
-... somechoice = ChoiceField(choices=GENDERS, widget=RadioSelect())
+... somechoice = ChoiceField(choices=GENDERS, widget=RadioSelect(), label=u'\xc5\xf8\xdf')
>>> f = SomeForm()
>>> f.as_p()
-u'
'
+u'
'
"""