diff --git a/tests/modeltests/model_forms/tests.py b/tests/modeltests/model_forms/tests.py index a401b16b093..d8f2f761b3d 100644 --- a/tests/modeltests/model_forms/tests.py +++ b/tests/modeltests/model_forms/tests.py @@ -1525,7 +1525,10 @@ class OldFormForXTests(TestCase): colour = Colour.objects.create(name='Blue') form = ColourfulItemForm() self.maxDiff = 1024 - self.assertHTMLEqual(form.as_p(), """
+ self.assertHTMLEqual( + form.as_p(), + """
Hold down "Control", or "Command" on a Mac, to select more than one.
""") + + Hold down "Control", or "Command" on a Mac, to select more than one.""" + % {'blue_pk': colour.pk})