Where (under what law or regulation) is it forbidden?
For the rats, it might be construed under the Americans with Disabilities Act (ADA)! :-) You raise a good point, but my intuition thinks there might be some trouble with asking a candidate employee their political affiliation. Not sure how though.