'Test correct config.'

@patch.dict('homeassistant.components.frontend.FINGERPRINTS', {'panels/ha-panel-iframe.html': 'md5md5'})
def test_correct_config(self):

    assert setup.setup_component(self.hass, 'panel_iframe', {'panel_iframe': {'router': {'icon': 'mdi:network-wireless', 'title': 'Router', 'url': 'http://192.168.1.1'}, 'weather': {'icon': 'mdi:weather', 'title': 'Weather', 'url': 'https://www.wunderground.com/us/ca/san-diego'}}})
    assert (self.hass.data[frontend.DATA_PANELS].get('router') == {'component_name': 'iframe', 'config': {'url': 'http://192.168.1.1'}, 'icon': 'mdi:network-wireless', 'title': 'Router', 'url': '/frontend/panels/iframe-md5md5.html', 'url_path': 'router'})
    assert (self.hass.data[frontend.DATA_PANELS].get('weather') == {'component_name': 'iframe', 'config': {'url': 'https://www.wunderground.com/us/ca/san-diego'}, 'icon': 'mdi:weather', 'title': 'Weather', 'url': '/frontend/panels/iframe-md5md5.html', 'url_path': 'weather'})
