mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 11:10:43 +01:00
Fix label escaping test to account for #6093
This commit is contained in:
parent
b98d724def
commit
7b5c064a19
@ -44,7 +44,7 @@ class TestFormSubmission(TestCase):
|
||||
def test_label_escaping(self):
|
||||
FormField.objects.filter(label="Your message").update(label="Your <em>wonderful</em> message")
|
||||
response = self.client.get('/contact-us/')
|
||||
self.assertContains(response, """<label for="id_your-emwonderfulem-message">Your <em>wonderful</em> message</label>""")
|
||||
self.assertContains(response, """<label for="id_your_message">Your <em>wonderful</em> message</label>""")
|
||||
|
||||
def test_post_invalid_form(self):
|
||||
response = self.client.post('/contact-us/', {
|
||||
|
Loading…
Reference in New Issue
Block a user