'DateFields can parse dates in the default format'

def test_dateField(self):

    f = forms.DateField()
    self.assertRaises(forms.ValidationError, f.clean, '21.12.2010')
    result = f.clean('2010-12-21')
    self.assertEqual(result, date(2010, 12, 21))
    text = f.widget._format_value(result)
    self.assertEqual(text, '2010-12-21')
    result = f.clean('12/21/2010')
    self.assertEqual(result, date(2010, 12, 21))
    text = f.widget._format_value(result)
    self.assertEqual(text, '2010-12-21')
