def test02(self):
        """Checking rename_node (over Leaves)"""

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

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

        # Create a new array
        self.h5file.rename_node('/anarray', 'anarray2')

        # Now undo the past operation
        self.h5file.undo()

        # Check that otherarray does not exist in the object tree
        self.assertTrue("/anarray" in self.h5file)
        self.assertTrue(self.h5file not in "/anarray2")
        self.assertEqual(self.h5file.root.anarray.title, "Array title")

        # Redo the operation
        self.h5file.redo()

        # Check that otherarray has come back to life in a sane state
        self.assertTrue("/anarray" not in self.h5file)
        self.assertTrue("/anarray2" in self.h5file)
        self.assertEqual(self.h5file.root.anarray2.title, "Array title")
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/RenameNodeTestCase.test02/swapped operands of `not in`