'Test stopping the cover tilt.'

def test_stop_cover_tilt(self):

    state = self.hass.states.get(ENTITY_COVER)
    self.assertEqual(50, state.attributes.get('current_tilt_position'))
    cover.close_cover_tilt(self.hass, ENTITY_COVER)
    self.hass.block_till_done()
    future = (dt_util.utcnow() + timedelta(seconds=1))
    fire_time_changed(self.hass, future)
    self.hass.block_till_done()
    cover.stop_cover_tilt(self.hass, ENTITY_COVER)
    self.hass.block_till_done()
    fire_time_changed(self.hass, future)
    state = self.hass.states.get(ENTITY_COVER)
    self.assertEqual(40, state.attributes.get('current_tilt_position'))
