def METHOD_NAME():
    stream = StringStream()
    zip = ZipArchive()
    zip.open_write(stream)
    assert not zip.is_read_valid()
    assert zip.is_write_valid()
    assert not zip.needs_repack()
    zip.close()
    assert stream.data == EMPTY_ZIP
    with zipfile.ZipFile(StreamIOWrapper(stream), 'r') as zf:
        assert zf.testzip() is None