

@pytest.mark.unit
def test_client_static_ip_custom_scheme():
    from bulby.client import HueBridgeClient
    with mock.patch('bulby.client.HueBridgeClient.connect') as connect:
        client = HueBridgeClient(ip_address='192.168.1.1', scheme='https', port=443)
    assert (client.ip_address == '192.168.1.1')
    assert (connect.base_url == 'https://192.168.1.1:443')

dataset/ETHPy150Open sontek/bulby/tests/test_client.py test_client_static_ip_custom_scheme/VarMisuse@64/107 `client`->`connect`