def test_staticFileUnicodeFileName(self):
        """
        A request for a existing unicode file path encoded as UTF-8
        returns the contents of that file.
        """
        name = u"\N{GREEK SMALL LETTER ETA WITH PERISPOMENI}"
        content = b"content"

        base = FilePath(self.mktemp())
        base.makedirs()
        base.child(name).setContent(content)
        file = static.File(base.path)

        request = DummyRequest([name.encode('utf-8')])
        child = resource.getChildForRequest(file, request)

        d = self._render(child, request)
        def cbRendered(ignored):
            self.assertEqual(b''.join(request.written), content)
            self.assertEqual(
                request.responseHeaders.getRawHeaders(b'content-length')[0],
                networkString(str(len(content))))
        d.addCallback(cbRendered)
        return d

        A request for a existing unicode file path encoded as UTF-8
        returns the contents of that file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py