from rhodecode.tests import * class TestBranchesController(TestController): def test_index(self): self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=HG_REPO)) self.assertTrue("""default""" % HG_REPO in response.body) self.assertTrue("""git""" % HG_REPO in response.body) self.assertTrue("""web""" % HG_REPO in response.body)