diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py index 75d7423..279f0f8 100644 --- a/tests/test_pagure_flask_ui_app.py +++ b/tests/test_pagure_flask_ui_app.py @@ -670,9 +670,13 @@ class PagureFlaskApptests(tests.Modeltests): '/settings/email/add', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertTrue("Add new email" in output.data) - self.assertIn( + self.assertTrue( 'Invalid value, can't be any of: bar@pingou.com, ' - 'foo@pingou.com. ', output.data) + 'foo@pingou.com. ' in output.data + or + 'Invalid value, can't be any of: foo@pingou.com, ' + 'bar@pingou.com. ' in output.data + ) self.assertEqual(output.data.count('foo@pingou.com'), 6) self.assertEqual(output.data.count('bar@pingou.com'), 5) self.assertEqual(output.data.count('foobar@pingou.com'), 0)