summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-18 00:30:14 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-18 00:30:14 (GMT)
commit9f6c37df26a76e2901586b458dce1851be097e2c (patch)
treef4b9522f682c4d25ac8211975f633c7c30afb5a3 /Lib
parentde80f2efb5c189a9e709651af99e495b2a578b5a (diff)
downloadcpython-9f6c37df26a76e2901586b458dce1851be097e2c.zip
cpython-9f6c37df26a76e2901586b458dce1851be097e2c.tar.gz
cpython-9f6c37df26a76e2901586b458dce1851be097e2c.tar.bz2
Add trivial test cases for RAND_add() and RAND_status().
(The rest of the test cases are trivial, so I don't feel too bad.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket_ssl.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py
index 334cbdf..9cf9cfe 100644
--- a/Lib/test/test_socket_ssl.py
+++ b/Lib/test/test_socket_ssl.py
@@ -13,4 +13,18 @@ if not hasattr(socket, "ssl"):
import urllib
-urllib.urlopen('https://sf.net')
+socket.RAND_status()
+try:
+ socket.RAND_egd(1)
+except TypeError:
+ pass
+else:
+ print "didn't raise TypeError"
+socket.RAND_add("this is a random string", 75.0)
+
+f = urllib.urlopen('https://sf.net')
+buf = f.read()
+f.close()
+
+
+