Child: [e05953] (diff)

Download this file

test_search.py    19 lines (13 with data), 513 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
from allura.tests import TestController
from allura.tests.helpers import validate_page
class TestSearch(TestController):
def test_global_search_controller(self):
r = self.app.get('/gsearch/')
validate_page(r)
r = self.app.get('/gsearch/', params=dict(q='Root'))
validate_page(r)
def test_project_search_controller(self):
r = self.app.get('/search/')
validate_page(r)
r = self.app.get('/search/', params=dict(q='Root'))
validate_page(r)