HPV test kits generally involve a self-collected sample from the cervix or vagina. The sample is then sent to a laboratory for analysis. The lab tests for the presence of HPV DNA, which indicates an active infection. Some kits can even identify the specific strains of HPV, which is important for assessing cancer risk.