def test_serializerPassedInBind(self):
        serializer = object()
        msg = Message({}, serializer)
        msg2 = msg.bind(x=1)
        self.assertIs(msg2._serializer, serializer)
Prepares a structured error result based on the exception.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_message.py/MessageTests.test_serializerPassedInBind--crossover with--dataset/ETHPy150Open StackStorm/st2/st2common/st2common/models/system/action.py/ShellCommandAction._get_error_result