Tongues aren't just for smelling

Is canine butt-sniffing also some kind of taste test as well then, or is this just for snakes?