'Test stopping the cover.'

def test_stop_cover(self):

    state = self.hass.states.get(ENTITY_COVER)
    self.assertEqual(70, state.attributes.get('current_position'))
    cover.open_cover(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(self.hass, ENTITY_COVER)
    self.hass.block_till_done()
    fire_time_changed(self.hass, future)
    state = self.hass.states.get(ENTITY_COVER)
    self.assertEqual(80, state.attributes.get('current_position'))
