'Test for desired error message when \'Sensor ID\' missing.'

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

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