diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 7ba9efefbc..1e86c4d7ba 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -2289,13 +2289,15 @@ class OtherModelFormTests(TestCase): model = PublicationDefaults fields = '__all__' + self.maxDiff = 2000 form = PublicationDefaultsForm() + today_str = str(datetime.date.today()) self.assertHTMLEqual( form.as_p(), """

- -

+ +

@@ -2304,12 +2306,13 @@ class OtherModelFormTests(TestCase): - """ + + """.format(today_str) ) empty_data = { 'title': '', - 'date_published': '2015-03-04', - 'initial-date_published': '2015-03-04', + 'date_published': today_str, + 'initial-date_published': today_str, 'mode': 'di', 'initial-mode': 'di', 'category': '3',