Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
690:4685f3eafd35 | 691:7486da5f0628 |
---|---|
1 from rhodecode.tests import * | |
2 | |
3 class TestHomeController(TestController): | |
4 | |
5 def test_index(self): | |
6 self.log_user() | |
7 response = self.app.get(url(controller='home', action='index')) | |
8 #if global permission is set | |
9 assert 'ADD NEW REPOSITORY' in response.body, 'Wrong main page' | |
10 assert 'href="/%s/summary"' % HG_REPO in response.body, ' mising repository in list' | |
11 # Test response... |