The incident has been widely reported over past weeks in a country faced with increased cases of sexual harassment since its 2011 revolution.
The two policemen allegedly stopped a car driven by a man and demanded to escort his female passenger home.
Instead, they drove her off in a police truck to an isolated area and tore off her clothes and sexually assaulted her, according to the charge sheet.
They face up to life in prison if convicted, a judicial official told AFP.