Commit 566fe9ef authored by Jeremy Hylton's avatar Jeremy Hylton

Track change of begin() to _begin().

parent b6a92139
...@@ -16,7 +16,7 @@ class FakeSocket: ...@@ -16,7 +16,7 @@ class FakeSocket:
body = "HTTP/1.1 200 Ok\r\n\r\nText" body = "HTTP/1.1 200 Ok\r\n\r\nText"
sock = FakeSocket(body) sock = FakeSocket(body)
resp = httplib.HTTPResponse(sock,1) resp = httplib.HTTPResponse(sock,1)
resp.begin() resp._begin()
print resp.read() print resp.read()
resp.close() resp.close()
...@@ -24,7 +24,7 @@ body = "HTTP/1.1 400.100 Not Ok\r\n\r\nText" ...@@ -24,7 +24,7 @@ body = "HTTP/1.1 400.100 Not Ok\r\n\r\nText"
sock = FakeSocket(body) sock = FakeSocket(body)
resp = httplib.HTTPResponse(sock,1) resp = httplib.HTTPResponse(sock,1)
try: try:
resp.begin() resp._begin()
except httplib.BadStatusLine: except httplib.BadStatusLine:
print "BadStatusLine raised as expected" print "BadStatusLine raised as expected"
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment