^ That is the formula for the modified capture rate. As you can see on the last part you times the catch rate by any bonus status conditions the target Pokémon has, if any. If the target is asleep, then it is 2x.
So Sleep does affect the probability of a Pokémon breaking out, but it doesn't guarantee a capture, that would be too easy, and the game doesn't need to use logic.