'Check that the zipfile is closed after the \'with\' block.'

def test_close(self):

    with zipfile.ZipFile(TESTFN2, 'w') as zipfp:
        for (fpath, fdata) in SMALL_TEST_DATA:
            zipfp.writestr(fpath, fdata)
            self.assertIsNotNone(zipfp.fp, 'zipfp    is    not    open')
    self.assertIsNone(zipfp.fp, 'zipfp    is    not    closed')
    with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
        self.assertIsNotNone(zipfp.fp, 'zipfp    is    not    open')
    self.assertIsNone(zipfp.fp, 'zipfp    is    not    closed')
