diff --git a/tests/forms_tests/field_tests/test_datefield.py b/tests/forms_tests/field_tests/test_datefield.py index a9f93f40ed..60c8043be3 100644 --- a/tests/forms_tests/field_tests/test_datefield.py +++ b/tests/forms_tests/field_tests/test_datefield.py @@ -149,6 +149,8 @@ class DateFieldTest(SimpleTestCase): f.clean("200a-10-25") with self.assertRaisesMessage(ValidationError, "'Enter a valid date.'"): f.clean("25/10/06") + with self.assertRaisesMessage(ValidationError, "'Enter a valid date.'"): + f.clean("0-0-0") with self.assertRaisesMessage(ValidationError, "'This field is required.'"): f.clean(None)