'Test tilt via method invocation.'

def test_tilt_position(self):

    self.assertTrue(setup_component(self.hass, cover.DOMAIN, {cover.DOMAIN: {'platform': 'mqtt', 'name': 'test', 'state_topic': 'state-topic', 'command_topic': 'command-topic', 'qos': 0, 'payload_open': 'OPEN', 'payload_close': 'CLOSE', 'payload_stop': 'STOP', 'tilt_command_topic': 'tilt-command-topic', 'tilt_status_topic': 'tilt-status-topic', 'tilt_opened_value': 400, 'tilt_closed_value': 125}}))
    cover.set_cover_tilt_position(self.hass, 50, 'cover.test')
    self.hass.block_till_done()
    self.assertEqual(('tilt-command-topic', 50, 0, False), self.mock_publish.mock_calls[(-2)][1])
