Skip to content

Commit d772f78

Browse files
committed
test: make the SSLError check stricter
Signed-off-by: Norbert Biczo <[email protected]>
1 parent 6a110fe commit d772f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_http_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def test_ssl_verification():
4747
service = BaseService(service_url='https://localhost:3333', authenticator=NoAuthAuthenticator())
4848
#
4949
# First call the server with the default configuration.
50-
# It should fail due to the invalid SSL cert.
50+
# It should fail due to the self-signed SSL cert.
5151
assert service.disable_ssl_verification is False
5252
prepped = service.prepare_request('GET', url='/')
53-
with pytest.raises(SSLError):
53+
with pytest.raises(SSLError, match="certificate verify failed: self-signed certificate"):
5454
res = service.send(prepped)
5555

5656
# Next configure it to validate by using our local certificate. Should raise no exception.

0 commit comments

Comments
 (0)