def setUp(self): # Create default item attributes self.uid = 'PREFIX-00042' # Ensure the tree is reloaded mock_document = Mock() mock_document.root = self.root mock_document.prefix = self.prefix self.mock_tree = Tree(mock_document) _set_tree(self.mock_tree)
def setUp(self): # Create default document options self.prefix = 'PREFIX' self.root = 'ROOT' self.path = os.path.join(self.root, 'DIRECTORY') self.parent = 'PARENT_PREFIX' # Ensure the tree is reloaded mock_document = Mock() mock_document.root = self.root self.mock_tree = Tree(mock_document) _set_tree(self.mock_tree)