

@patch.multiple('failnozzle.settings', UNIQUE_MSG_TUPLE=CustomUniqueError, SOURCE_FIELD_NAME='src', create=True)
def test_customization_msg_impl():
    '\n    Test that the user can customize the impl of UniqueMessage and the\n    output formats.\n    '
    message_queue = Mock()
    message_buffer = Mock()
    message_params = dict(x=1, y=2, z=3, src='src')
    message_queue.get.return_value = message_params
    _process_one_message(message_params, message_buffer)
    message_buffer.add.assert_called_once_with(CustomUniqueError(1, 2, 3), 'src')

dataset/ETHPy150Open wingu/failnozzle/failnozzle/tests/test_customization.py test_customization_msg_impl/VarMisuse@74/149 `message_queue`->`message_params`