

@pytest.mark.unit
def test_ssdp_raise_exception_multiple():
    from bulby.client import HueBridgeClient
    with mock.patch('bulby.client.discover') as discover:
        with mock.patch('bulby.client.HueBridgeClient.connect') as connect:
            ip_one = '192.168.1.1'
            ip_two = '192.168.1.2'
            discover.return_value = [DummySSDPResponse(ip_one), DummySSDPResponse(ip_two)]
            with pytest.raises(Exception) as e:
                HueBridgeClient()
            msg = (' '.join(["Found more than one bridge ['http://%s:80/description.xml',", "'http://%s:80/description.xml']"]) % (ip_one, msg))
            assert (str(e.value) == msg)

dataset/ETHPy150Open sontek/bulby/tests/test_client.py test_ssdp_raise_exception_multiple/VarMisuse@105/206 `ip_two`->`msg`