diff --git a/wagtail/contrib/forms/tests/test_models.py b/wagtail/contrib/forms/tests/test_models.py
index c45e9559e8..c348921193 100644
--- a/wagtail/contrib/forms/tests/test_models.py
+++ b/wagtail/contrib/forms/tests/test_models.py
@@ -44,7 +44,7 @@ class TestFormSubmission(TestCase):
def test_label_escaping(self):
FormField.objects.filter(label="Your message").update(label="Your wonderful message")
response = self.client.get('/contact-us/')
- self.assertContains(response, """""")
+ self.assertContains(response, """""")
def test_post_invalid_form(self):
response = self.client.post('/contact-us/', {