'Check that a filename containing a null byte is properly
terminated.'

def test_null_byte_in_filename(self):

    with zipfile.ZipFile(TESTFN, mode='w') as zipf:
        zipf.writestr('foo.txt\x00qqq', 'O,    for    a    Muse    of    Fire!')
        self.assertEqual(zipf.namelist(), ['foo.txt'])
