@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 = bridge_client.set_color(light.name, 'ff0000')
    assert result is True
dataset/ETHPy150Open sontek/bulby/tests/test_client.py/test_get_light_by_name/original