def test05f_destructive(self):
        """Checking with a destructive creation of existing node during undo"""

        if common.verbose:
            print('\n', '-=' * 30)
            print("Running %s.test05f_destructive..." %
                  self.__class__.__name__)

        self.h5file.enable_undo()
        self.h5file.create_array('/', 'newarray', [1])
        self.h5file.undo()
        self._do_reopen()
        self.assertTrue(self.h5file not in '/newarray')
        newarr = self.h5file.create_array('/', 'newarray', [1])
        self.h5file.undo()
        self.assertTrue('/newarray' not in self.h5file)
        self._do_reopen()
        self.h5file.redo()
        self.assertTrue('/newarray' in self.h5file)
        if not self._reopen_flag:
            self.assertTrue(self.h5file.root.newarray is newarr)
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/BasicTestCase.test05f_destructive/swapped operands of `not in`