def test_api_is_connected(requests_mock):
    requests_mock.get('http://localhost:1026/ngsi-ld/v1/entities', status_code=200)
    client = Client()
    assert client.is_connected()
def test_api_is_connected(requests_mock):
    requests_mock.get('http://localhost:1026/ngsi-ld/v1/entities', status_code=200)
    client = Client()
    assert client.is_connected()