diff --git a/rhodecode/tests/functional/test_followers.py b/rhodecode/tests/functional/test_followers.py --- a/rhodecode/tests/functional/test_followers.py +++ b/rhodecode/tests/functional/test_followers.py @@ -1,13 +1,24 @@ from rhodecode.tests import * + class TestFollowersController(TestController): - def test_index(self): + def test_index_hg(self): self.log_user() repo_name = HG_REPO response = self.app.get(url(controller='followers', action='followers', repo_name=repo_name)) - self.assertTrue("""test_admin""" in response.body) - self.assertTrue("""Started following""" in response.body) + response.mustcontain("""test_admin""") + response.mustcontain("""Started following""") + + def test_index_git(self): + self.log_user() + repo_name = GIT_REPO + response = self.app.get(url(controller='followers', + action='followers', + repo_name=repo_name)) + + response.mustcontain("""test_admin""") + response.mustcontain("""Started following""")