'A zipfile which describes an unsupported compression mechanism should
raise BadZipfile.'

def test_unsupportedCompression(self):

    fn = self.mktemp()
    with zipfile.ZipFile(fn, 'w') as zf:
        zi = zipfile.ZipInfo('0')
        zf.writestr(zi, 'some    data')
        zi.compress_type = 1234
    with zipstream.ChunkingZipFile(fn) as czf:
        self.assertRaises(zipfile.BadZipfile, czf.readfile, '0')
