This is a hard one.

The fact that Louis cheated on the test makes it unfair to the rest of the class. BUT -- is it really any of your business? And how did you find out? Did Louis tell you?
Anthony, I applaud your honesty, I really do. And I would be tempted to tell on him too, because like I said -- when Louis cheats, it's unfair to everyone in the class.
But it's not up to you to play judge. If Louis is normally not a good student, and the teacher sees that he aces the test, I'm sure he/she is going to figure it out himself/herself. Cheats usually don't get away with it. I say leave it alone. I might be wrong -- but friends are hard to come by, although I'm not sure I'd want a cheater for a friend.

God bless & take care. Hugs, Lee