diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py index fcd5ded..c15c844 100644 --- a/tests/test_pagure_flask_ui_app.py +++ b/tests/test_pagure_flask_ui_app.py @@ -161,23 +161,24 @@ class PagureFlaskApptests(tests.Modeltests): self.assertEqual(output.status_code, 200) self.assertIn('Create new Project', output.data) self.assertIn( - '\n This field is required.' - ' \n ', output.data) + '\n This field is required. \n' + ' ', output.data) data['name'] = 'project-1' output = self.app.post('/new/', data=data) self.assertEqual(output.status_code, 200) self.assertIn('Create new Project', output.data) self.assertNotIn( - '\n This field is required.' - ' \n ', output.data) + '\n This field is required. \n' + ' ', output.data) data['csrf_token'] = csrf_token output = self.app.post('/new/', data=data) self.assertEqual(output.status_code, 200) self.assertIn('Create new Project', output.data) self.assertIn( - '\n No user "username" found', + '\n No user ' + '"username" found\n ', output.data) user.username = 'foo' diff --git a/tests/test_pagure_flask_ui_issues.py b/tests/test_pagure_flask_ui_issues.py index e093181..fab24c2 100644 --- a/tests/test_pagure_flask_ui_issues.py +++ b/tests/test_pagure_flask_ui_issues.py @@ -1163,11 +1163,11 @@ class PagureFlaskIssuestests(tests.Modeltests): '