'Test the sending of stop_cover.'

def test_send_stop__cover_command(self):

    self.assertTrue(setup_component(self.hass, cover.DOMAIN, {cover.DOMAIN: {'platform': 'mqtt', 'name': 'test', 'state_topic': 'state-topic', 'command_topic': 'command-topic', 'qos': 2}}))
    state = self.hass.states.get('cover.test')
    self.assertEqual(STATE_UNKNOWN, state.state)
    cover.stop_cover(self.hass, 'cover.test')
    self.hass.block_till_done()
    self.assertEqual(('command-topic', 'STOP', 2, False), self.mock_publish.mock_calls[(-2)][1])
    state = self.hass.states.get('cover.test')
    self.assertEqual(STATE_UNKNOWN, state.state)
