assert_tree_match

asdf.tests.helpers.assert_tree_match(old_tree, new_tree, ctx=None, funcname='assert_equal', ignore_keys=None)[source]

Assert that two ASDF trees match.

Parameters:
old_treeASDF tree
new_treeASDF tree
ctxASDF file context

Used to look up the set of types in effect.

funcnamestr or callable

The name of a method on members of old_tree and new_tree that will be used to compare custom objects. The default of assert_equal handles Numpy arrays.

ignore_keyslist of str

List of keys to ignore