'Test turn on fan with specified speed.'

def test_dyson_turn_on_speed(self):

    device = _get_device_on()
    component = dyson.DysonPureCoolLinkDevice(self.hass, device)
    self.assertFalse(component.should_poll)
    component.turn_on('1')
    set_config = device.set_configuration
    set_config.assert_called_with(fan_mode=FanMode.FAN, fan_speed=FanSpeed.FAN_SPEED_1)
    component.turn_on('AUTO')
    set_config = device.set_configuration
    set_config.assert_called_with(fan_mode=FanMode.AUTO)
