diff --git a/tests/test_pagure_flask_ui_issues.py b/tests/test_pagure_flask_ui_issues.py
index bd34b53..7ccf118 100644
--- a/tests/test_pagure_flask_ui_issues.py
+++ b/tests/test_pagure_flask_ui_issues.py
@@ -308,7 +308,8 @@ class PagureFlaskIssuestests(tests.Modeltests):
output = self.app.get('/test/issue/1')
self.assertEqual(output.status_code, 200)
- self.assertIn(
+ # Not authentified = No edit
+ self.assertNotIn(
'',
output.data)
self.assertTrue(
@@ -320,7 +321,8 @@ class PagureFlaskIssuestests(tests.Modeltests):
with tests.user_set(pagure.APP, user):
output = self.app.get('/test/issue/1')
self.assertEqual(output.status_code, 200)
- self.assertIn(
+ # Not author nor admin = No edit
+ self.assertNotIn(
'',
output.data)
self.assertFalse(