tests: adapt to markup change (#31493)

This commit is contained in:
Frédéric Péters 2019-03-17 15:45:13 +01:00
parent 2e52a5d1fb
commit 6ea5b7668e
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class SamlSSOTestCase(SamlBaseTestCase):
response = client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response['Content-Type'].split(';')[0], 'text/html')
self.assertInHTML(u'<button class="cancel-button" name="cancel">%s</button>' % _('Cancel'), response.content,
self.assertInHTML(u'<button class="cancel-button" name="cancel" formnovalidate>%s</button>' % _('Cancel'), response.content,
count=1)
if cancel:
response = client.post(url, {