def test_bug_5366(self):
"""Publish a package with slashes in the name, and then verify
that the depot manifest and info operations work regardless of
the encoding."""
depot_url = self.dc.get_depot_url()
plist = self.pkgsend_bulk(depot_url, self.system10)
# First, try it un-encoded.
repourl = urljoin(depot_url, "info/0/{0}".format(plist[0]))
urlopen(repourl)
repourl = urljoin(depot_url, "manifest/0/{0}".format(
plist[0]))
urlopen(repourl)
# Second, try it encoded.
repourl = urljoin(depot_url, "info/0/{0}".format(
quote(plist[0])))
urlopen(repourl)
repourl = urljoin(depot_url, "manifest/0/{0}".format(
quote(plist[0])))
urlopen(repourl)
评论列表
文章目录