'Test IPMI Fan sensor data.
A single fan reading is effectively the same as temperature,
modulo "fan".'

def test_ipmi_fan_notification(self):

    processor = ipmi.FanSensorNotification(None)
    counters = dict([(counter.resource_id, counter) for counter in processor.process_notification(ipmi_test_data.SENSOR_DATA)])
    self.assertEqual(12, len(counters), 'expected    12    fan    readings')
    resource_id = 'f4982fd2-2f2b-4bb5-9aff-48aac801d1ad-fan_4a_tach_(0x46)'
    test_counter = counters[resource_id]
    self.assertEqual(6900.0, test_counter.volume)
    self.assertEqual('RPM', test_counter.unit)
    self.assertEqual(sample.TYPE_GAUGE, test_counter.type)
    self.assertEqual('hardware.ipmi.fan', test_counter.name)
