'Test new message.'

def test_new_message(self):

    dev_id = 'paulus'
    enttiy_id = device_tracker.ENTITY_ID_FORMAT.format(dev_id)
    topic = '/location/paulus'
    location = 'work'
    self.hass.config.components = set(['mqtt', 'zone'])
    assert setup_component(self.hass, device_tracker.DOMAIN, {device_tracker.DOMAIN: {CONF_PLATFORM: 'mqtt', 'devices': {dev_id: topic}}})
    fire_mqtt_message(self.hass, topic, location)
    self.hass.block_till_done()
    self.assertEqual(location, self.hass.states.get(enttiy_id).state)
