From 387d39f6ddbe54b137b675dc1b581995cd1b10f5 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 30 Mar 2016 18:10:37 +0200 Subject: [PATCH 4/6] tests: only look for the mimetype in response body (#10477) List of extensions being random, we just verify that the mimetype is present followed by the ( character. --- tests/test_admin_pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_admin_pages.py b/tests/test_admin_pages.py index 665c824..a06cc19 100644 --- a/tests/test_admin_pages.py +++ b/tests/test_admin_pages.py @@ -2528,7 +2528,7 @@ def test_settings_filetypes(pub): resp = resp.forms[0].submit('submit') assert resp.location == 'http://example.net/backoffice/settings/filetypes/' resp = resp.follow() - assert 'application/msword (.doc)' in resp.body + assert 'application/msword (' in resp.body assert 'application/pdf' in pub.cfg['filetypes'][1]['mimetypes'] resp.forms[0]['label'] = 'HTML files' -- 2.1.4