diff --git a/tests/test_progit_flask_ui_no_master_branch.py b/tests/test_progit_flask_ui_no_master_branch.py index 2addff7..5cf88a5 100644 --- a/tests/test_progit_flask_ui_no_master_branch.py +++ b/tests/test_progit_flask_ui_no_master_branch.py @@ -137,8 +137,12 @@ class PagureFlaskNoMasterBranchtests(tests.Modeltests): # With git repo output = self.app.get('/test') self.assertEqual(output.status_code, 200) - self.assertIn('

Last 0 commits

', output.data) - self.assertTrue(output.data.count('\n
', + output.data) + self.assertEqual( + output.data.count('\n
', + output.data) + self.assertEqual( + output.data.count('\n
', output.data) + self.assertNotIn( + '
', output.data) output = self.app.get('/test/commits/feature') self.assertEqual(output.status_code, 200) - self.assertIn('

Commits list

', output.data) + self.assertIn( + '