annotate rhodecode/tests/functional/test_branches.py @ 3937:2f5e6f1c5bdc beta

Bumped mercurial version
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 03 Jun 2013 14:18:07 +0200
parents d7488551578e
children 7e5f8c12a3fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
547
1e757ac98988 renamed project to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 473
diff changeset
1 from rhodecode.tests import *
93
aec4c0071cb3 added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2
3797
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
3
93
aec4c0071cb3 added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
4 class TestBranchesController(TestController):
aec4c0071cb3 added empty controllers for branches tags files graph, routing and test for them
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5
3797
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
6 def test_index_hg(self):
473
6b934c9607e7 Improved testing scenarios. Made test env creator
Marcin Kuzminski <marcin@python-works.com>
parents: 459
diff changeset
7 self.log_user()
1723
64e91067b996 - refactoring to overcome poor usage of global pylons config
Marcin Kuzminski <marcin@python-works.com>
parents: 688
diff changeset
8 response = self.app.get(url(controller='branches',
64e91067b996 - refactoring to overcome poor usage of global pylons config
Marcin Kuzminski <marcin@python-works.com>
parents: 688
diff changeset
9 action='index', repo_name=HG_REPO))
3797
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
10 response.mustcontain("""<a href="/%s/files/96507bd11ecc815ebc6270fdf6db110928c09c1e/">default</a>""" % HG_REPO)
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
11
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
12 # closed branches
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
13 response.mustcontain("""<a href="/%s/changeset/95ca6417ec0de6ac3bd19b336d7b608f27b88711">git [closed]</a><""" % HG_REPO)
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
14 response.mustcontain("""<a href="/%s/changeset/0dd5fd7b37a4eea4dd9b662af63cee743b4ccce2">web [closed]</a>""" % HG_REPO)
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
15
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
16 def test_index_git(self):
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
17 self.log_user()
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
18 response = self.app.get(url(controller='branches',
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
19 action='index', repo_name=GIT_REPO))
d7488551578e synced vcs with upstream
Marcin Kuzminski <marcin@python-works.com>
parents: 1818
diff changeset
20 response.mustcontain("""<a href="/%s/files/5f2c6ee195929b0be80749243c18121c9864a3b3/">master</a>""" % GIT_REPO)