def assert_same_dict(data, expected_data):
 diffs = diff_dicts(data, expected_data)
 if diffs:
  raise DiffAssertionError(diffs)

def assert_same_dict ( data , expected_data ) : diffs = diff_dicts ( data , expected_data ) if diffs : raise DiffAssertionError ( diffs )
asserts two dicts are the same .