def getFileEntry(self, contents):
        """
        Return an appropriate zip file entry
        """
        filename = self.mktemp()
        with zipfile.ZipFile(filename, 'w', self.compression) as z:
            z.writestr('content', contents)
        z = zipstream.ChunkingZipFile(filename, 'r')
        return z.readfile('content')

        Return an appropriate zip file entry
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_zipstream.py