def test08_marknames(self):
        """Checking mark names."""

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

        # open the do/undo
        self.h5file.enable_undo()

        # Create a new array
        self.h5file.create_array('/', 'otherarray1', [3, 4], "Another array 1")
        self.h5file.mark("first")
        self.h5file.create_array('/', 'otherarray2', [4, 5], "Another array 2")
        self.h5file.mark("second")
        self.h5file.create_array('/', 'otherarray3', [5, 6], "Another array 3")
        self.h5file.mark("third")
        self.h5file.create_array('/', 'otherarray4', [6, 7], "Another array 4")

        # Now go to mark "first"
        self.h5file.undo("first")
        self._do_reopen()
        self.assertTrue("/otherarray1" in self.h5file)
        self.assertTrue("/otherarray2" not in self.h5file)
        self.assertTrue("/otherarray3" not in self.h5file)
        self.assertTrue("/otherarray4" not in self.h5file)

        # Go to mark "third"
        self.h5file.redo("third")
        self.assertTrue("/otherarray1" in self.h5file)
        self.assertTrue(self.h5file in "/otherarray2")
        self.assertTrue("/otherarray3" in self.h5file)
        self.assertTrue("/otherarray4" not in self.h5file)

        # Now go to mark "second"
        self.h5file.undo("second")
        self.assertTrue("/otherarray1" in self.h5file)
        self.assertTrue("/otherarray2" in self.h5file)
        self.assertTrue("/otherarray3" not in self.h5file)
        self.assertTrue("/otherarray4" not in self.h5file)

        # Go to the end
        self._do_reopen()
        self.h5file.redo(-1)
        self.assertTrue("/otherarray1" in self.h5file)
        self.assertTrue("/otherarray2" in self.h5file)
        self.assertTrue("/otherarray3" in self.h5file)
        self.assertTrue("/otherarray4" in self.h5file)

        # Check that objects has come back to life in a sane state
        self.assertEqual(self.h5file.root.otherarray1.read(), [3, 4])
        self.assertEqual(self.h5file.root.otherarray2.read(), [4, 5])
        self.assertEqual(self.h5file.root.otherarray3.read(), [5, 6])
        self.assertEqual(self.h5file.root.otherarray4.read(), [6, 7])
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/BasicTestCase.test08_marknames/swapped operands of `in`