From 2d74a5fd65d94ea4cfb91dec56bf5d18c07e32c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Sat, 29 Dec 2012 16:25:24 +0200 Subject: [PATCH] [1.5.x] Fixed autopk issue in tests Backpatch of ba4331f1775ef4dd2895b3592092973e24db3c25 --- tests/modeltests/model_forms/tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/modeltests/model_forms/tests.py b/tests/modeltests/model_forms/tests.py index a401b16b09..d8f2f761b3 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})