def METHOD_NAME():
    source = b"id,filename\n1,archive"
    resource = TableResource(data=source, format="csv", compression="zip")
    with pytest.raises(FrictionlessException) as excinfo:
        resource.open()
    error = excinfo.value.error
    assert error.type == "compression-error"
    assert error.note == "File is not a zip file"