niprov.comparing module¶
-
niprov.comparing.
compare
(file1, file2, dependencies=None)¶ Compare the provenance of two files.
This creates a niprov
Diff
object that can be further interrogated or displayed for differences between the two files.Example
Chain calls with methods of Diff or print the Diff object:
compare(file1, file2).assertEqual(ignore='path') print(compare(file1, file2))
Parameters: Returns: A niprov
Diff
object which reflects differences between the two files.Return type: