[Python-checkins] python/dist/src/Lib/test test_httplib.py,1.2,1.2.12.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Tue, 02 Jul 2002 13:39:39 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv12871

Modified Files:
      Tag: release22-maint
	test_httplib.py 
Log Message:
Track change of begin() to _begin().


Index: test_httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_httplib.py,v
retrieving revision 1.2
retrieving revision 1.2.12.1
diff -C2 -d -r1.2 -r1.2.12.1
*** test_httplib.py	25 Sep 2001 19:29:35 -0000	1.2
--- test_httplib.py	2 Jul 2002 20:39:37 -0000	1.2.12.1
***************
*** 17,21 ****
  sock = FakeSocket(body)
  resp = httplib.HTTPResponse(sock,1)
! resp.begin()
  print resp.read()
  resp.close()
--- 17,21 ----
  sock = FakeSocket(body)
  resp = httplib.HTTPResponse(sock,1)
! resp._begin()
  print resp.read()
  resp.close()
***************
*** 25,29 ****
  resp = httplib.HTTPResponse(sock,1)
  try:
!     resp.begin()
  except httplib.BadStatusLine:
      print "BadStatusLine raised as expected"
--- 25,29 ----
  resp = httplib.HTTPResponse(sock,1)
  try:
!     resp._begin()
  except httplib.BadStatusLine:
      print "BadStatusLine raised as expected"