@pytest.mark.unit
def test_ssdp_no_bridges():
    from bulby.client import HueBridgeClient
    with mock.patch('bulby.client.discover') as discover:
        with mock.patch('bulby.client.HueBridgeClient.connect') as connect:

            discover.return_value = [
            ]

            with pytest.raises(Exception) as e:
                HueBridgeClient()

            assert str(e.value) in 'No bridges found'
dataset/ETHPy150Open sontek/bulby/tests/test_client.py/test_ssdp_no_bridges/operator `==` -> `in`