def test_compare_different_files(self): approver = FileApprover() reporter = TestingReporter() approver.verify_files("a.txt", "b.txt", reporter) self.assertTrue(reporter.called)
def test_compare_same_files(): approver = FileApprover() writer = StringWriter("a") writer.write_received_file("a.txt") shutil.copy("a.txt", "a_same.txt") approver.verify_files("a.txt", "a_same.txt", None)