I don't understand this. Aren't almost all self.test_path_or_test_case going to be TestCases? If so, why are we short-circuiting to a test-only method?

(I'm far from dogmatic about "never have 'test-only' paths in your code!" but I'm confused about what's going on here.)