@pytest.mark.unit
def test_client_static_ip_custom_port():
    from bulby.client import HueBridgeClient
    with mock.patch('bulby.client.HueBridgeClient.connect') as connect:
        client = HueBridgeClient(ip_address='192.168.1.1', port=1337)

    assert client.ip_address == '192.168.1.1'
    assert client.port == 1337
dataset/ETHPy150Open sontek/bulby/tests/test_client.py/test_client_static_ip_custom_port/original