Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def verify(apitrace, inTrace, inCallNo, outTrace, outCallNo):
inState = getState(apitrace, inTrace, inCallNo)
outState = getState(apitrace, outTrace, outCallNo)
comparer = jsondiff.Comparer(ignore_added = True)
match = comparer.visit(inState, outState)
if match:
sys.stdout.write("States match.\n")
else:
sys.stdout.write("States do not match.\n")
differ = Differ(sys.stdout)
differ.visit(inState, outState)