According to Salon

Good luck getting a teaching job in São Paulo if you’re a woman who doesn’t want to undergo a pap smear or have a doctor certify your virginity in a written note. As outlined by a 2012 law that might well have been written decades (or even centuries) earlier, women who wish to become teachers in Brazil’s most populous state must undergo invasive gynecological exams to test for a variety of cancers, ostensibly to determine if the candidates pose a risk of taking extended absences to cope with an illness.