Let $X$ be a topological space and $X=U\cup V$ an open cover of $X$. Let $Z$ be the double mapping cylinder of the inclusions $U\leftarrow U\cap V\rightarrow V$. One has an obvious map $Z\rightarrow X$ by (identity on the top and the bottom of the cylinder and constant on the cylinder).
Is $Z\rightarrow X$ always a homotopy equivalence? If not, can on give mild conditions on $X$ or the open cover in which cases the map is a homotopy equivalence?
I don't know.
The double mapping cylinder is $Z := ((U \cap V)\times [0,1] \sqcup U \sqcup V) / \sim $, where you identify $U \cap V \times \{0\}$ with its image via the inclusion into $U$, and $U \cap V \times \{ 1 \}$ with its image into $V$.
Now we describe the homotopy: first note that $U \cup V = U \sqcup V / \sim$, where we identify $U \cap V \subset U$ and $U \cap V \subset V$. But this is done with the double cone: let $x \in U \cap V$, then the line $x \times [0,1]$ connects $x \in U$ and $x \in V$. Collapsing all these lines at the same time gives you the homotopy from $Z$ to $U \cup V = X$. We still need the inverse construction.
If you want it more explicit, look at $U \sqcup V$ as $U \times \{0 \} \cup V \times \{1\}$, and the cylinder will consist of the points on $U \cap V \times \{t \}$, with $t \in [0,1]$. Here you can see that collapsing the lines of the cylinder is the same as identifying the points of $U \cap V$ downstairs and upstairs, and you obtain the desired homotopy. We still need the inverse construction.
EDIT: As Martha pointed out, we still need to construct a continuous map from $U \cup V$ to $Z$ which gives us an inverse modulo homotopy, and this is difficult in general. I can't think on any example now