'Test IPMI Temperature sensor data.
Based on the above ipmi_testdata the expected sample for a single
temperature reading has::
* a resource_id composed from the node_uuid Sensor ID
* a name composed from \'hardware.ipmi.\' and \'temperature\'
* a volume from the first chunk of the Sensor Reading
* a unit from the last chunk of the Sensor Reading
* some readings are skipped if the value is \'Disabled\'
* metatata with the node id'

def test_ipmi_temperature_notification(self):

    processor = ipmi.TemperatureSensorNotification(None)
    counters = dict([(counter.resource_id, counter) for counter in processor.process_notification(ipmi_test_data.SENSOR_DATA)])
    self.assertEqual(10, len(counters), 'expected    10    temperature    readings')
    resource_id = 'f4982fd2-2f2b-4bb5-9aff-48aac801d1ad-dimm_gh_vr_temp_(0x3b)'
    test_counter = counters[resource_id]
    self.assertEqual(26.0, test_counter.volume)
    self.assertEqual('C', test_counter.unit)
    self.assertEqual(sample.TYPE_GAUGE, test_counter.type)
    self.assertEqual('hardware.ipmi.temperature', test_counter.name)
    self.assertEqual('hardware.ipmi.metrics.update', test_counter.resource_metadata['event_type'])
    self.assertEqual('f4982fd2-2f2b-4bb5-9aff-48aac801d1ad', test_counter.resource_metadata['node'])
