'Localized DateFields act as unlocalized widgets'

def test_localized_dateField(self):

    f = forms.DateField(localize=True)
    with self.assertRaises(forms.ValidationError):
        f.clean('2010-12-21')
    result = f.clean('21.12.2010')
    self.assertEqual(result, date(2010, 12, 21))
    text = f.widget.format_value(result)
    self.assertEqual(text, '21.12.2010')
    result = f.clean('21-12-2010')
    self.assertEqual(result, date(2010, 12, 21))
    text = f.widget.format_value(result)
    self.assertEqual(text, '21.12.2010')
