view rhodecode/tests/functional/test_home.py @ 691:7486da5f0628 beta

Refactor codes for scm model Some test updates, added test for admin user controller
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 14 Nov 2010 22:54:16 +0100
parents rhodecode/tests/functional/test_hg.py@8acbfa837180
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...