Mock open()? That's what I would do ...
In reply to Re^2: TDD with Coverage Analysis. Wow. by dragonchild in thread TDD with Coverage Analysis. Wow. by dws