assert_roundtrip_tree¶
-
asdf.tests.helpers.
assert_roundtrip_tree
(*args, **kwargs)[source]¶ Assert that a given tree saves to ASDF and, when loaded back, the tree matches the original tree.
tree : ASDF tree
- tmpdirstr
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_funccallable, optional
Will be called with the raw YAML content as a string to perform any additional checks.
- asdf_check_funccallable, optional
Will be called with the reloaded ASDF file to perform any additional checks.