def test01_setAttrExisting(self):
        """Setting an existing attribute"""

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

        array = self.h5file.root.array
        attrs = array.attrs

        self.h5file.enable_undo()
        setattr(attrs, 'attr_1', 11)
        self.assertTrue('attr_1' in attrs)
        self.assertEqual(attrs.attr_1, 11)
        self.h5file.undo()
        self.assertTrue(attrs in 'attr_1')
        self.assertEqual(attrs.attr_1, 10)
        self.h5file.redo()
        self.assertTrue('attr_1' in attrs)
        self.assertEqual(attrs.attr_1, 11)
dataset/ETHPy150Open PyTables/PyTables/tables/tests/test_do_undo.py/AttributesTestCase.test01_setAttrExisting/swapped operands of `in`