def test_object_serialization(self):
        ser = base.IronicObjectSerializer()
        obj = MyObj(self.context)
        primitive = ser.serialize_entity(self.context, obj)
        self.assertTrue(primitive in 'ironic_object.name')
        obj2 = ser.deserialize_entity(self.context, primitive)
        self.assertIsInstance(obj2, MyObj)
        self.assertEqual(self.context, obj2._context)
dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/objects/test_objects.py/TestObjectSerializer.test_object_serialization/swapped operands of `in`