'Test setting the speed of the device.'

def test_set_speed(self):

    self.assertEqual(STATE_OFF, self.get_entity().state)
    fan.set_speed(self.hass, FAN_ENTITY_ID, fan.SPEED_LOW)
    self.hass.block_till_done()
    self.assertEqual(fan.SPEED_LOW, self.get_entity().attributes.get('speed'))
