@patch.multiple('failnozzle.settings',
                UNIQUE_MSG_TUPLE=CustomUniqueError,
                SOURCE_FIELD_NAME='src',
                create=True)
def test_customization_msg_impl():
    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_queue, message_buffer)
    message_buffer.add.assert_called_once_with(CustomUniqueError(1, 2, 3),
                                               'src')


# Have to patch failnozzle.server rather than jinja2 since these are copied
# into the namespace using from/import.
# jinja2.loaders.FileSystemLoader
Microseconds and seconds are ignored.
dataset/ETHPy150Open wingu/failnozzle/failnozzle/tests/test_customization.py/test_customization_msg_impl--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/utils/timesince.py/TimesinceTests.test_ignore_microseconds_and_seconds