[Python-checkins] CVS: python/dist/src/Lib/test test_socket_ssl.py,1.2,1.3
Jeremy Hylton
jhylton@users.sourceforge.net
Wed, 17 Oct 2001 17:30:16 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv13012/Lib/test
Modified Files:
test_socket_ssl.py
Log Message:
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.)
Index: test_socket_ssl.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_socket_ssl.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_socket_ssl.py 2001/09/06 09:54:47 1.2
--- test_socket_ssl.py 2001/10/18 00:30:14 1.3
***************
*** 14,16 ****
import urllib
! urllib.urlopen('https://sf.net')
--- 14,30 ----
import urllib
! 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()
!
!
!