Mercurial > kallithea
view rhodecode/tests/functional/test_home.py @ 1556:1efca2908ae4 beta
fixes issue #248 cannot edit repos inside a group on windows
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 13 Oct 2011 04:26:43 +0200 |
parents | 605707b50d7c |
children | ef0613584ced |
line wrap: on
line source
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... self.assertTrue("""<img class="icon" title="Mercurial repository" """ """alt="Mercurial repository" src="/images/icons/hg""" """icon.png"/>""" in response.body) self.assertTrue("""<img class="icon" title="public repository" """ """alt="public repository" src="/images/icons/lock_""" """open.png"/>""" in response.body) self.assertTrue("""<a title="Marcin Kuzminski <marcin@python-works.com> merge" class="tooltip" href="/vcs_test_hg/changeset/27cd5cce30c96924232dffcd24178a07ffeb5dfc">r173:27cd5cce30c9</a>""" in response.body)