view rhodecode/tests/functional/test_home.py @ 1218:3d9da7893fdb

fixes for stable
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 05 Apr 2011 18:51:34 +0200
parents 7486da5f0628
children 0765fd5bf668
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
        assert 'ADD NEW REPOSITORY' in response.body, 'Wrong main page'
        assert 'href="/%s/summary"' % HG_REPO in response.body, ' mising repository in list'
        # Test response...