# HG changeset patch # User Marcin Kuzminski # Date 2011-12-18 02:41:52 # Node ID ef0613584ced13e348e61886ea09e311a52df1a3 # Parent d4a7b6c82efe082bb8a5f9423e04b1f6496b2abd test fixes diff --git a/rhodecode/templates/changeset/changeset_file_comment.html b/rhodecode/templates/changeset/changeset_file_comment.html --- a/rhodecode/templates/changeset/changeset_file_comment.html +++ b/rhodecode/templates/changeset/changeset_file_comment.html @@ -88,7 +88,7 @@ %endfor %for co in c.comments: - ${comment.comment_block(co)} + ${comment_block(co)} %endfor %if c.rhodecode_user.username != 'default':
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 @@ -6,10 +6,9 @@ class TestBranchesController(TestControl 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) + response.mustcontain("""default""" % HG_REPO) + response.mustcontain("""git""" % HG_REPO) + response.mustcontain("""web""" % HG_REPO) diff --git a/rhodecode/tests/functional/test_home.py b/rhodecode/tests/functional/test_home.py --- a/rhodecode/tests/functional/test_home.py +++ b/rhodecode/tests/functional/test_home.py @@ -1,22 +1,22 @@ from rhodecode.tests import * + class TestHomeController(TestController): def test_index(self): self.log_user() response = self.app.get(url(controller='home', action='index')) #if global permission is set - self.assertTrue('ADD NEW REPOSITORY' in response.body) - self.assertTrue('href="/%s/summary"' % HG_REPO in response.body) - # Test response... + response.mustcontain('ADD REPOSITORY') + response.mustcontain('href="/%s/summary"' % HG_REPO) - self.assertTrue("""""" in response.body) - self.assertTrue("""""") + response.mustcontain("""""" in response.body) - - self.assertTrue("""r173:27cd5cce30c9""" - in response.body) + """open.png"/>""") + + response.mustcontain( +"""r173:27cd5cce30c9""") diff --git a/rhodecode/tests/functional/test_tags.py b/rhodecode/tests/functional/test_tags.py --- a/rhodecode/tests/functional/test_tags.py +++ b/rhodecode/tests/functional/test_tags.py @@ -5,9 +5,9 @@ class TestTagsController(TestController) def test_index(self): self.log_user() response = self.app.get(url(controller='tags', action='index', repo_name=HG_REPO)) - assert """tip""" % HG_REPO in response.body, 'wrong info about tip tag' - assert """0.1.4""" % HG_REPO in response.body, 'wrong info about 0.1.4 tag' - assert """0.1.3""" % HG_REPO in response.body, 'wrong info about 0.1.3 tag' - assert """0.1.2""" % HG_REPO in response.body, 'wrong info about 0.1.2 tag' - assert """0.1.1""" % HG_REPO in response.body, 'wrong info about 0.1.1 tag' - # Test response... + response.mustcontain("""tip""" % HG_REPO) + response.mustcontain("""0.1.4""" % HG_REPO) + response.mustcontain("""0.1.3""" % HG_REPO) + response.mustcontain("""0.1.2""" % HG_REPO) + response.mustcontain("""0.1.1""" % HG_REPO) +