diff options
author | Facundo Batista <facundobatista@gmail.com> | 2007-05-21 17:32:32 +0000 |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2007-05-21 17:32:32 +0000 |
commit | 70f996be24dd00c11500cd99d92e8b2a1dfaa501 (patch) | |
tree | b60861e73678368f2690057584e42faf1eaa41ef /Lib/test/test_httplib.py | |
parent | 767debb6aa5729e919da309ecc770f8b2d94beba (diff) | |
download | cpython-git-70f996be24dd00c11500cd99d92e8b2a1dfaa501.tar.gz |
Added timeout support to HTTPSConnection, through the
socket.create_connection function. Also added a small
test for this, and updated NEWS file.
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r-- | Lib/test/test_httplib.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 035f0b909e..9238eea202 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -194,8 +194,16 @@ class TimeoutTest(TestCase): httpConn.close() +class HTTPSTimeoutTest(TestCase): +# XXX Here should be tests for HTTPS, there isn't any right now! + + def test_attributes(self): + # simple test to check it's storing it + h = httplib.HTTPSConnection(HOST, PORT, timeout=30) + self.assertEqual(h.timeout, 30) + def test_main(verbose=None): - test_support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest) + test_support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest, HTTPSTimeoutTest) if __name__ == '__main__': test_main() |