MCPcopy
hub / github.com/cherrypy/cherrypy / test_unicode

Method test_unicode

cherrypy/test/test_static.py:449–459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447 cls.files_to_remove.append(filepath)
448
449 def test_unicode(self):
450 ensure_unicode_filesystem()
451 self.unicode_file()
452 url = ntou('/static/Слава Україні.html', 'utf-8')
453 # quote function requires str
454 url = tonative(url, 'utf-8')
455 url = urllib.parse.quote(url)
456 self.getPage(url)
457
458 expected = ntou('Героям Слава!', 'utf-8')
459 self.assertInBody(expected)
460
461
462def error_page_404(status, message, traceback, version):

Callers

nothing calls this directly

Calls 5

unicode_fileMethod · 0.95
ntouFunction · 0.90
tonativeFunction · 0.90
getPageMethod · 0.80

Tested by

no test coverage detected