'Test turn on/off fan with auto mode.'

def test_dyson_turn_auto_mode(self):

    device = _get_device_on()
    component = dyson.DysonPureCoolLinkDevice(self.hass, device)
    self.assertFalse(component.should_poll)
    component.auto_mode(True)
    set_config = device.set_configuration
    set_config.assert_called_with(fan_mode=FanMode.AUTO)
    component.auto_mode(False)
    set_config = device.set_configuration
    set_config.assert_called_with(fan_mode=FanMode.FAN)
