assert_roundtrip_tree¶
-
asdf.tests.helpers.
assert_roundtrip_tree
(tree, tmpdir, *, asdf_check_func=None, raw_yaml_check_func=None, write_options={}, init_options={}, extensions=None, tree_match_func='assert_equal')[source]¶ Assert that a given tree saves to ASDF and, when loaded back, the tree matches the original tree.
tree : ASDF tree
- tmpdir : str
- Path to temporary directory to save file
- tree_match_func :
str
orcallable
- Passed to
assert_tree_match
and used to compare two objects in the tree. - raw_yaml_check_func : callable, optional
- Will be called with the raw YAML content as a string to perform any additional checks.
- asdf_check_func : callable, optional
- Will be called with the reloaded ASDF file to perform any additional checks.