def test_newWithSerializer(self):
        serializer = object()
        msg = Message.new(serializer, x=1)
        self.assertIs(msg._serializer, serializer)
L{Message.new} can accept a serializer.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_message.py/MessageTests.test_newWithSerializer