def testQueryUnicodePath(self):
"""A query on a non-existent Unicode tag, should 404. Part of the
point here is to make sure that no other error occurs due to
passing in a Unicode tag path.
"""
path = u'çóñ/???'
query = '%s = "hi"' % path
URI = '%s/%s?query=%s' % (
self.endpoint,
defaults.httpObjectCategoryName,
urllib.quote(query.encode('utf-8')))
headers = Headers({'accept': ['application/json']})
agent = Agent(reactor)
response = yield agent.request('GET', URI, headers)
self.assertEqual(http.NOT_FOUND, response.code)
评论列表
文章目录