MCPcopy
hub / github.com/cherrypy/cherrypy / unicode_file

Method unicode_file

cherrypy/test/test_static.py:442–447  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

440
441 @classmethod
442 def unicode_file(cls):
443 filename = ntou('Слава Україні.html', 'utf-8')
444 filepath = curdir / 'static' / filename
445 with filepath.open('w', encoding='utf-8')as strm:
446 strm.write(ntou('Героям Слава!', 'utf-8'))
447 cls.files_to_remove.append(filepath)
448
449 def test_unicode(self):
450 ensure_unicode_filesystem()

Callers 1

test_unicodeMethod · 0.95

Calls 2

ntouFunction · 0.90
writeMethod · 0.80

Tested by

no test coverage detected