'Test setting fan mode without required attribute.'

def test_set_fan_mode_bad_attr(self):

    state = self.hass.states.get(ENTITY_CLIMATE)
    self.assertEqual('On    High', state.attributes.get('fan_mode'))
    climate.set_fan_mode(self.hass, None, ENTITY_CLIMATE)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_CLIMATE)
    self.assertEqual('On    High', state.attributes.get('fan_mode'))
