'Test setting the away mode without required attribute.'

def test_set_away_mode_bad_attr(self):

    state = self.hass.states.get(ENTITY_CLIMATE)
    self.assertEqual('on', state.attributes.get('away_mode'))
    climate.set_away_mode(self.hass, None, ENTITY_CLIMATE)
    self.hass.block_till_done()
    self.assertEqual('on', state.attributes.get('away_mode'))
