comparison rhodecode/tests/functional/test_search.py @ 2459:9492ab68331f beta

Initial version of landing revisions ref #483 - fixed relevant tests for creation of repo - added some tests for git
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 14 Jun 2012 23:19:26 +0200
parents 402a96fcfa22
children 5f21a9dcb09d
comparison
equal deleted inserted replaced
2458:ba49541187d9 2459:9492ab68331f
1 import os
1 from rhodecode.tests import * 2 from rhodecode.tests import *
2 import os
3 from nose.plugins.skip import SkipTest 3 from nose.plugins.skip import SkipTest
4 4
5 5
6 class TestSearchController(TestController): 6 class TestSearchController(TestController):
7 7
25 25
26 def test_normal_search(self): 26 def test_normal_search(self):
27 self.log_user() 27 self.log_user()
28 response = self.app.get(url(controller='search', action='index'), 28 response = self.app.get(url(controller='search', action='index'),
29 {'q': 'def repo'}) 29 {'q': 'def repo'})
30 response.mustcontain('10 results') 30 response.mustcontain('39 results')
31 response.mustcontain('Permission denied')
32 31
33 def test_repo_search(self): 32 def test_repo_search(self):
34 self.log_user() 33 self.log_user()
35 response = self.app.get(url(controller='search', action='index'), 34 response = self.app.get(url(controller='search', action='index'),
36 {'q': 'repository:%s def test' % HG_REPO}) 35 {'q': 'repository:%s def test' % HG_REPO})
37 36
38 response.mustcontain('4 results') 37 response.mustcontain('4 results')
39 response.mustcontain('Permission denied')