From ba4331f1775ef4dd2895b3592092973e24db3c25 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] Fixed autopk issue in tests --- 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 38fc9d058c..6ecd1278dd 100644 --- a/tests/modeltests/model_forms/tests.py +++ b/tests/modeltests/model_forms/tests.py @@ -1528,7 +1528,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})