'Test a multiple address list config\'d by the HASS config file.'

@mock.patch('soco.SoCo', new=SoCoMock)
@mock.patch('socket.create_connection', side_effect=socket.error())
def test_ensure_setup_config_hosts_list(self, *args):

    config = {DOMAIN: {CONF_PLATFORM: 'sonos', CONF_HOSTS: ['192.0.2.1', '192.168.2.2']}}
    assert setup_component(self.hass, DOMAIN, config)
    self.assertEqual(len(self.hass.data[sonos.DATA_SONOS]), 2)
    self.assertEqual(self.hass.data[sonos.DATA_SONOS][0].name, 'Kitchen')
