Looking at the logic of 1 proportion z tests. You can do it in 3 easy steps.. the key to understanding is drawing the null model.