Earlier quoted context omitted.
It really depends on the job. If your priorities are of a political nature, then that's a reasonable expectation. If you're hiring me for an engineering position and you can't handle some harmless swearing, then you're really not sharing in my engineering priorities. Here it's just pointless culture policing and power playing.
Accepting that folks you don't know might not share your values, and adjusting accordingly isn't "political". It's basic respect and professionalism. Now, from your perspective, you might think you're just testing the employer. That is, if they'll put up with your swearing in the interview, then it might be a better value fit. And that may be true. I'm simply suggesting that you may end up disqualified for positions…
I do realize that judgement goes both ways. I'm not going to blame someone for being foolish, but I will blame them for hiding it when they could instead learn from it.