def METHOD_NAME(self):
    """Test retrieving channel lo from LO config."""
    channel = DriveChannel(0)
    lo_config = LoConfig({channel: 1.0})
    self.assertEqual(lo_config.channel_lo(channel), 1.0)
    channel = MeasureChannel(0)
    lo_config = LoConfig({channel: 2.0})
    self.assertEqual(lo_config.channel_lo(channel), 2.0)
    with self.assertRaises(PulseError):
        lo_config.channel_lo(MeasureChannel(1))