def _makebigfile(self, filename, compression, junk):
        """
        Create a zip file with the given file name and compression scheme.
        """
        with zipfile.ZipFile(filename, 'w', compression) as zf:
            for i in range(10):
                fn = 'zipstream%d' % i
                zf.writestr(fn, "")
            zf.writestr('zipstreamjunk', junk)

        Create a zip file with the given file name and compression scheme.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_zipstream.py