

@pytest.mark.functional
def test_get_light_by_name(bridge_client):
    lights = bridge_client.get_lights()
    light = lights[0]
    light = bridge_client.get_light(light.name)
    assert (light is not None)
    result = lights.set_color(light.name, 'ff0000')
    assert (result is True)

dataset/ETHPy150Open sontek/bulby/tests/test_client.py test_get_light_by_name/VarMisuse@53/69 `bridge_client`->`lights`