'Check that is_zipfile() correctly identifies non-zip files.'

def test_is_zip_erroneous_file(self):

    with open(TESTFN, 'w') as fp:
        fp.write('this    is    not    a    legal    zip    file\n')
    self.assertFalse(zipfile.is_zipfile(TESTFN))
    self.assertFalse(zipfile.is_zipfile(pathlib.Path(TESTFN)))
    with open(TESTFN, 'rb') as fp:
        self.assertFalse(zipfile.is_zipfile(fp))
    fp = io.BytesIO()
    fp.write('this    is    not    a    legal    zip    file\n')
    self.assertFalse(zipfile.is_zipfile(fp))
    fp.seek(0, 0)
    self.assertFalse(zipfile.is_zipfile(fp))
