[Python-checkins] python/dist/src/Lib/test test_httplib.py,1.6,1.7

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Fri, 12 Jul 2002 07:04:11 -0700


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

Modified Files:
	test_httplib.py 
Log Message:
Change _begin() back to begin().

Client code could create responses explicitly.






Index: test_httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_httplib.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_httplib.py	7 Jul 2002 16:51:37 -0000	1.6
--- test_httplib.py	12 Jul 2002 14:04:09 -0000	1.7
***************
*** 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"
***************
*** 53,57 ****
  s = FakeSocket(text)
  r = httplib.HTTPResponse(s, 1)
! r._begin()
  cookies = r.getheader("Set-Cookie")
  if cookies != hdr:
--- 53,57 ----
  s = FakeSocket(text)
  r = httplib.HTTPResponse(s, 1)
! r.begin()
  cookies = r.getheader("Set-Cookie")
  if cookies != hdr: