def METHOD_NAME(self):
    base_class = self.env["l10n_br_fiscal.document.related"]
    tree, visited = self.get_stacked_tree(base_class)
    self.assertEqual(tree, NFeRelated.NFREF_TREE)
    self.assertEqual(len(visited), 4)