diff options
author | Ratan Kulshreshtha <RatanShreshtha@users.noreply.github.com> | 2019-05-28 20:49:36 +0530 |
---|---|---|
committer | Seth Michael Larson <sethmichaellarson@gmail.com> | 2019-05-28 10:19:36 -0500 |
commit | 52c827532d8b434e6bd344fad7ee69b9d247792b (patch) | |
tree | 0d7f70b4d84f11804e0c0967cd14f6a3ce88195f /test/with_dummyserver/test_no_ssl.py | |
parent | f7a4bed04085975918b3469bf94e195df9faf29a (diff) | |
download | urllib3-52c827532d8b434e6bd344fad7ee69b9d247792b.tar.gz |
Update assertions to pytest style (#1614)
Diffstat (limited to 'test/with_dummyserver/test_no_ssl.py')
-rw-r--r-- | test/with_dummyserver/test_no_ssl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/with_dummyserver/test_no_ssl.py b/test/with_dummyserver/test_no_ssl.py index c8435fa8..a3cb63ca 100644 --- a/test/with_dummyserver/test_no_ssl.py +++ b/test/with_dummyserver/test_no_ssl.py @@ -15,7 +15,7 @@ class TestHTTPWithoutSSL(HTTPDummyServerTestCase, TestWithoutSSL): pool = urllib3.HTTPConnectionPool(self.host, self.port) self.addCleanup(pool.close) r = pool.request("GET", "/") - self.assertEqual(r.status, 200, r.data) + assert r.status == 200, r.data class TestHTTPSWithoutSSL(HTTPSDummyServerTestCase, TestWithoutSSL): @@ -25,4 +25,4 @@ class TestHTTPSWithoutSSL(HTTPSDummyServerTestCase, TestWithoutSSL): try: pool.request("GET", "/") except urllib3.exceptions.SSLError as e: - self.assertIn("SSL module is not available", str(e)) + assert "SSL module is not available" in str(e) |