diff options
author | Seth Michael Larson <sethmichaellarson@gmail.com> | 2019-07-26 12:01:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 12:01:11 -0500 |
commit | c858ad9b5ff283ebbdf58e95acf7f6439e459d29 (patch) | |
tree | ec01f0955cb4627b4d18b8103a1a3ecc88c493cc | |
parent | 809af5e61b0d9adf0ef411b1699331f14dcd2604 (diff) | |
download | urllib3-cert-log-warning.tar.gz |
Update test_connection.pycert-log-warning
-rw-r--r-- | test/test_connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_connection.py b/test/test_connection.py index 5969a089..77794898 100644 --- a/test/test_connection.py +++ b/test/test_connection.py @@ -32,7 +32,7 @@ class TestConnection(object): cert = {"subjectAltName": [("DNS", "foo")]} asserted_hostname = "bar" try: - with mock.patch("urllib3.connection.log.error") as mock_log: + with mock.patch("urllib3.connection.log.warning") as mock_log: _match_hostname(cert, asserted_hostname) except CertificateError as e: assert "hostname 'bar' doesn't match 'foo'" in str(e) |