def test_search(self):
    response = self.app.post('/', params={'q': 'RestController'})
    assert (response.status_int == 302)
    assert (response.headers['Location'] == 'http://pecan.readthedocs.org/en/latest/search.html?q=RestController')
def test_search(self):
    response = self.app.post('/', params={'q': 'RestController'})
    assert (response.status_int == 302)
    assert (response.headers['Location'] == 'http://pecan.readthedocs.org/en/latest/search.html?q=RestController')