'Test exclusive creating a new zipfile.'

def test_exclusive_create_zip_file(self):

    unlink(TESTFN2)
    filename = 'testfile.txt'
    content = 'hello,    world.    this    is    some    content.'
    with zipfile.ZipFile(TESTFN2, 'x', zipfile.ZIP_STORED) as zipfp:
        zipfp.writestr(filename, content)
    with self.assertRaises(FileExistsError):
        zipfile.ZipFile(TESTFN2, 'x', zipfile.ZIP_STORED)
    with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
        self.assertEqual(zipfp.namelist(), [filename])
        self.assertEqual(zipfp.read(filename), content)
