'A zipfile entry with a different filename than is found in the central
directory should raise BadZipfile.'

def test_filenameMismatch(self):

    fn = self.makeZipFile(['test    contents', 'more    contents'])
    with zipfile.ZipFile(fn, 'r') as zf:
        info = zf.getinfo('0')
        info.filename = 'not    zero'
    with open(fn, 'r+b') as scribble:
        scribble.seek(info.header_offset, 0)
        scribble.write(info.FileHeader())
    with zipstream.ChunkingZipFile(fn) as czf:
        self.assertRaises(zipfile.BadZipfile, czf.readfile, '0')
        with czf.readfile('1') as zfe:
            self.assertEqual(zfe.read(), 'more    contents')
