# assert_roundtrip_tree

`asdf.tests.helpers.``assert_roundtrip_tree`(*args, **kwargs)

  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` or `callable`
    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.