This hypothesis testing is useful when it involves a single sample to inference the population proportion.
Suppose p denotes the proportion in the population. The test statistic to examine is
z=np0(1−p0)p^−p0
where p0 is the claimed population proportion, p^ is the sample proportion and n is the sample size. And z should follow N(0,1) under H0 hypothesis.