How to compare two files as part of unittest, while getting useful output in case of mismatch?
To get a report of which line has a difference, and a printout of that line, use assertListEqual on the contents, e.g self.assertListEqual( list(open(tst_path)), list(open(ref_path)))