def test_contains(self):
        obj = MyObj(self.context)
        self.assertFalse('foo' in obj)
        obj.foo = 1
        self.assertTrue('foo' in obj)
        self.assertFalse('does_not_exist' in obj)
dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/objects/test_objects.py/_TestObject.test_contains/original