in reply to Re: Testing failures: How to override print to make it fail?
in thread Testing failures: How to override print to make it fail?
I'm helping a workmate write his first ever tests for
a new function he added to an existing module.
Seeing that his new function had:
I suggested it is good form to write tests for exceptional conditions ... then realized I had no idea how to do it. :-)
also nags you if you don't test the or die
open ... or die ...
print ... or die ...