From f2b0f8ea0fc5849801a2aeb71f2db106e5655aea Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Sat, 5 Feb 2011 18:16:27 +0000 Subject: Fixed #15226 - Made SelectDateWidget render the label tag associated with the correct dropdown sub-widget when USE_L10N is active and non-English locale is in use. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15427 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/tests/extra.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/regressiontests/forms') diff --git a/tests/regressiontests/forms/tests/extra.py b/tests/regressiontests/forms/tests/extra.py index 787a129338..927362a71f 100644 --- a/tests/regressiontests/forms/tests/extra.py +++ b/tests/regressiontests/forms/tests/extra.py @@ -356,6 +356,10 @@ class FormsExtraTestCase(unittest.TestCase, AssertFormErrorsMixin): self.assertFalse(c.is_valid()) self.assertEqual(c.errors, {'mydate': [u'Enter a valid date.']}) + # label tag is correctly associated with month dropdown + d = GetDate({'mydate_month':'1', 'mydate_day':'1', 'mydate_year':'2010'}) + self.assertTrue('