'Test setup OK with custom config.'

@mock.patch('libsoundtouch.soundtouch_device', side_effect=None)
def test_ensure_setup_config(self, mocked_sountouch_device):

    soundtouch.setup_platform(self.hass, default_component(), mock.MagicMock())
    all_devices = self.hass.data[soundtouch.DATA_SOUNDTOUCH]
    self.assertEqual(len(all_devices), 1)
    self.assertEqual(all_devices[0].name, 'soundtouch')
    self.assertEqual(all_devices[0].config['port'], 8090)
    self.assertEqual(mocked_sountouch_device.call_count, 1)
