diff --git a/tests/test_pagure_flask_ui_app_give_project.py b/tests/test_pagure_flask_ui_app_give_project.py index 5ae1439..b7554f3 100644 --- a/tests/test_pagure_flask_ui_app_give_project.py +++ b/tests/test_pagure_flask_ui_app_give_project.py @@ -110,7 +110,7 @@ class PagureFlaskGiveRepotests(tests.Modeltests): output = self.app.post( '/test/give', data=data, follow_redirects=True) - self.assertEqual(output.status_code, 500) + self.assertEqual(output.status_code, 404) self.assertIn( '
No such user foobar found
', output.data) @@ -230,7 +230,8 @@ class PagureFlaskGiveRepotests(tests.Modeltests): '/test/give', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( - '\n Project updated\n', + '\n The project has been ' + 'transferred to foo\n', output.data) self._check_user('foo') @@ -256,7 +257,8 @@ class PagureFlaskGiveRepotests(tests.Modeltests): '/test/give', data=data, follow_redirects=True) self.assertEqual(output.status_code, 200) self.assertIn( - '\n Project updated\n', + '\n The project has been ' + 'transferred to foo\n', output.data) self._check_user('foo')