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""")