def test_bug_15482(self):
"""Test to make sure BUI search doesn't trigger a traceback."""
# Now update the repository configuration while the depot is
# stopped so changes won't be overwritten on exit.
self.__update_repo_config()
# Start the depot.
self.dc.start()
# Then, publish some packages we can abuse for testing.
durl = self.dc.get_depot_url()
self.pkgsend_bulk(durl, self.quux10, refresh_index=True)
surl = urljoin(durl,
"en/search.shtml?action=Search&token=*")
urlopen(surl).read()
surl = urljoin(durl,
"en/advanced_search.shtml?action=Search&token=*")
urlopen(surl).read()
surl = urljoin(durl,
"en/advanced_search.shtml?token=*&show=a&rpp=50&"
"action=Advanced+Search")
urlopen(surl).read()
评论列表
文章目录