def test02_copy(self):
        """Test copying a node."""

        def pre():
            self.h5file.create_array('/', 'array', [1])

        def doit(newpath):
            self.h5file.copy_node('/array', newpath, createparents=True)
            self.assertTrue(join_path(newpath, 'array') in self.h5file)

        def post(newpath):
            self.assertTrue(join_path(newpath, 'array') not in self.h5file)
        self.basetest(doit, pre, post)
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/CreateParentsTestCase.test02_copy/original