'Test if new entity is created.'

def test_entities_get_created(self):

    self.assertTrue(setup_component(self.hass, weblink.DOMAIN, {weblink.DOMAIN: {'entities': [{weblink.CONF_NAME: 'My    router', weblink.CONF_URL: 'http://127.0.0.1/'}]}}))
    state = self.hass.states.get('weblink.my_router')
    assert (state is not None)
    assert (state.state == 'http://127.0.0.1/')
