[Python-checkins] python/dist/src/Lib/test test_httplib.py,1.4,1.5

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Fri, 28 Jun 2002 16:54:32 -0700


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

Modified Files:
	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.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_httplib.py	1 Apr 2002 19:00:50 -0000	1.4
--- test_httplib.py	28 Jun 2002 23:54:30 -0000	1.5
***************
*** 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"