From d67415afddb74835bdba4807dbcae5036f9637ca Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 24 2015 09:22:02 +0000 Subject: Adjust unit-test for the new UI --- 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.assertNotIn( + '