'Localized DateTimeFields in a non-localized environment act as unlocalized widgets'

def test_localized_dateTimeField(self):

    f = forms.DateTimeField()
    with self.assertRaises(forms.ValidationError):
        f.clean('13:30:05    21.12.2010')
    result = f.clean('2010-12-21    13:30:05')
    self.assertEqual(result, datetime(2010, 12, 21, 13, 30, 5))
    text = f.widget.format_value(result)
    self.assertEqual(text, '2010-12-21    13:30:05')
    result = f.clean('12/21/2010    13:30:05')
    self.assertEqual(result, datetime(2010, 12, 21, 13, 30, 5))
    text = f.widget.format_value(result)
    self.assertEqual(text, '2010-12-21    13:30:05')
