def test_health_err(fake_heksher_service, monkeypatch):
    with fake_heksher_service.health.patch(Response(status_code=403)):
        client = ThreadHeksherClient(fake_heksher_service.local_url(), 1000,
                                     ['a', 'b', 'c'])
        with raises(HTTPError):
            client.ping()
def test_health_unreachable():
    client = ThreadHeksherClient('http://notreal.fake.notreal', 1000,
                                 ['a', 'b', 'c'])
    with raises(HTTPError):
        client.ping()
def test_health_OK(fake_heksher_service):
    client = ThreadHeksherClient(fake_heksher_service.local_url(), 1000,
                                 ['a', 'b', 'c'])
    client.ping()