diff --git a/rhodecode/tests/functional/test_branches.py b/rhodecode/tests/functional/test_branches.py
--- a/rhodecode/tests/functional/test_branches.py
+++ b/rhodecode/tests/functional/test_branches.py
@@ -1,11 +1,20 @@
from rhodecode.tests import *
+
class TestBranchesController(TestController):
- def test_index(self):
+ 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)
- response.mustcontain("""git""" % HG_REPO)
- response.mustcontain("""web""" % 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)