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 response.mustcontain('ADD REPOSITORY') response.mustcontain('href="/%s/summary"' % HG_REPO) response.mustcontain("""""") response.mustcontain("""""") response.mustcontain( """r173:27cd5cce30c9""")