"Party discipline" is a European thing. It's a corollary to a multiparty system, in which you can enforce ideological purity.
We've never had it in America. The American constitutional system makes it very hard to have more than two major parties, and these parties, to be successful, have to be broad coalitions. "Litmus tests" cut down your potential coalition, and diminish your chances of winning.