'Test setting operation mode without required attribute.
Also check the state.'

def test_set_operation_bad_attr_and_state(self):

    state = self.hass.states.get(ENTITY_CLIMATE)
    self.assertEqual('cool', state.attributes.get('operation_mode'))
    self.assertEqual('cool', state.state)
    climate.set_operation_mode(self.hass, None, ENTITY_CLIMATE)
    self.hass.block_till_done()
    state = self.hass.states.get(ENTITY_CLIMATE)
    self.assertEqual('cool', state.attributes.get('operation_mode'))
    self.assertEqual('cool', state.state)
