[Python-checkins] r50694 - python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py

jackilyn.hoxworth python-checkins at python.org
Tue Jul 18 02:12:21 CEST 2006


Author: jackilyn.hoxworth
Date: Tue Jul 18 02:12:19 2006
New Revision: 50694

Modified:
   python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
Log:
Still not working.

Modified: python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py
==============================================================================
--- python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py	(original)
+++ python/branches/hoxworth-stdlib_logging-soc/test_soc_httplib.py	Tue Jul 18 02:12:19 2006
@@ -32,9 +32,15 @@
 # create socket
 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 
-# httplib.HTTPResponse(sock).log("message 1") # says there is no attribute for "log"
-httplib._log.info("message 1")
-# httplib.HTTPConnection(sock.connect).log("message 2")
+httplib._log.info("message 1") # first stage of testing
+
+r = httplib.HTTPResponse(sock) # second stage of testing
+r.begin() # call the begin method
+
+"""self.msg == None
+self._read_status == "message 1" == CONTINUE
+skip != True
+self.debuglevel > 0"""
 
 print stringLog.getvalue()  # For testing purposes
 


More information about the Python-checkins mailing list