The woman who appeared to be asleep in a car containing class-A drugs has been given a jail sentence.