From 9f6c37df26a76e2901586b458dce1851be097e2c Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Thu, 18 Oct 2001 00:30:14 +0000 Subject: 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.) --- Lib/test/test_socket_ssl.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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() + + + -- cgit v0.12