diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py
index ca0808d..dfea3c6 100644
--- a/tests/test_pagure_flask_ui_repo.py
+++ b/tests/test_pagure_flask_ui_repo.py
@@ -883,11 +883,10 @@ class PagureFlaskRepotests(tests.Modeltests):
# View binary file
output = self.app.get('/test/blob/sources/f/test_binary')
self.assertEqual(output.status_code, 200)
- # In newer pygit2 patch.is_binary behaves differently
- #self.assertIn('/f/test_binary">view the raw version', output.data)
- #self.assertTrue(
- #'Binary files cannot be rendered.
'
- #in output.data)
+ self.assertIn('/f/test_binary">view the raw version', output.data)
+ self.assertTrue(
+ 'Binary files cannot be rendered.
'
+ in output.data)
# View folder
output = self.app.get('/test/blob/master/f/folder1')