From: Jeremy Hylton Date: Thu, 18 Oct 2001 00:30:14 +0000 (+0000) Subject: Add trivial test cases for RAND_add() and RAND_status(). X-Git-Tag: v2.2.1c1~1208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f6c37df26a76e2901586b458dce1851be097e2c;p=python 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.) --- diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index 334cbdfbd3..9cf9cfeac6 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() + + +