(test_name, a_name, b_name)
| 321 | |
| 322 | |
| 323 | def compare_files(test_name, a_name, b_name): |
| 324 | with open(a_name, encoding="utf-8") as a: |
| 325 | with open(b_name, encoding="utf-8") as b: |
| 326 | differences = list(difflib.unified_diff(a.readlines(), b.readlines())) |
| 327 | if len(differences) == 0: |
| 328 | return True |
| 329 | else: |
| 330 | print(f"{test_name} differences:") |
| 331 | sys.stdout.writelines(differences) |
| 332 | return False |
| 333 | |
| 334 | |
| 335 | class ZoneTestCase(unittest.TestCase): |
no outgoing calls
no test coverage detected
searching dependent graphs…