diff options
author | Raymond Hettinger <python@rcn.com> | 2011-01-06 05:34:17 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-01-06 05:34:17 (GMT) |
commit | 7beae8a0d567022f959c70f0be367ced7af65808 (patch) | |
tree | a84cff32b0d73598d3bebb1e8c0ad97ad197792a /Lib/test/test_httplib.py | |
parent | 90a4b3162e6a6c39519d5b3c1be39accbf568db6 (diff) | |
download | cpython-7beae8a0d567022f959c70f0be367ced7af65808.zip cpython-7beae8a0d567022f959c70f0be367ced7af65808.tar.gz cpython-7beae8a0d567022f959c70f0be367ced7af65808.tar.bz2 |
Issue 10825: Minor updates to the test suite.
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r-- | Lib/test/test_httplib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index fb80e7a..890b1b9 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -560,7 +560,7 @@ class RequestBodyTest(TestCase): self.conn.request("PUT", "/url", "body") message, f = self.get_headers_and_fp() self.assertEqual("text/plain", message.get_content_type()) - self.assertEqual(None, message.get_charset()) + self.assertIsNone(message.get_charset()) self.assertEqual("4", message.get("content-length")) self.assertEqual(b'body', f.read()) @@ -568,7 +568,7 @@ class RequestBodyTest(TestCase): self.conn.request("PUT", "/url", "body\xc1") message, f = self.get_headers_and_fp() self.assertEqual("text/plain", message.get_content_type()) - self.assertEqual(None, message.get_charset()) + self.assertIsNone(message.get_charset()) self.assertEqual("5", message.get("content-length")) self.assertEqual(b'body\xc1', f.read()) @@ -576,7 +576,7 @@ class RequestBodyTest(TestCase): self.conn.request("PUT", "/url", b"body\xc1") message, f = self.get_headers_and_fp() self.assertEqual("text/plain", message.get_content_type()) - self.assertEqual(None, message.get_charset()) + self.assertIsNone(message.get_charset()) self.assertEqual("5", message.get("content-length")) self.assertEqual(b'body\xc1', f.read()) @@ -587,7 +587,7 @@ class RequestBodyTest(TestCase): self.conn.request("PUT", "/url", f) message, f = self.get_headers_and_fp() self.assertEqual("text/plain", message.get_content_type()) - self.assertEqual(None, message.get_charset()) + self.assertIsNone(message.get_charset()) self.assertEqual("4", message.get("content-length")) self.assertEqual(b'body', f.read()) @@ -598,7 +598,7 @@ class RequestBodyTest(TestCase): self.conn.request("PUT", "/url", f) message, f = self.get_headers_and_fp() self.assertEqual("text/plain", message.get_content_type()) - self.assertEqual(None, message.get_charset()) + self.assertIsNone(message.get_charset()) self.assertEqual("5", message.get("content-length")) self.assertEqual(b'body\xc1', f.read()) |