'Test for desired error message when \'node_uuid\' missing.
Presumably this will never happen given the way the data
is created, but better defensive than dead.'

@mock.patch('ceilometer.ipmi.notifications.ironic.LOG')
def test_missing_node_uuid(self, mylog):

    processor = ipmi.TemperatureSensorNotification(None)
    messages = []
    mylog.warning = (lambda *args: messages.extend(args))
    list(processor.process_notification(ipmi_test_data.NO_NODE_ID))
    self.assertEqual("invalid    sensor    data    for    missing    id:    missing    key    in    payload:    'node_uuid'", messages[0])
