from rhodecode.tests import * class TestBranchesController(TestController): def test_index_hg(self): self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=HG_REPO)) response.mustcontain("""default""" % HG_REPO) # closed branches response.mustcontain("""git [closed]<""" % HG_REPO) response.mustcontain("""web [closed]""" % HG_REPO) def test_index_git(self): self.log_user() response = self.app.get(url(controller='branches', action='index', repo_name=GIT_REPO)) response.mustcontain("""master""" % GIT_REPO)