equal
deleted
inserted
replaced
51 class ChunkedTransferTest(util.HttpTestBase, unittest.TestCase): |
51 class ChunkedTransferTest(util.HttpTestBase, unittest.TestCase): |
52 def testChunkedUpload(self): |
52 def testChunkedUpload(self): |
53 con = http.HTTPConnection('1.2.3.4:80') |
53 con = http.HTTPConnection('1.2.3.4:80') |
54 con._connect() |
54 con._connect() |
55 sock = con.sock |
55 sock = con.sock |
56 sock.read_wait_sentinel = 'end-of-body' |
56 sock.read_wait_sentinel = '0\r\n\r\n' |
57 sock.data = ['HTTP/1.1 200 OK\r\n', |
57 sock.data = ['HTTP/1.1 200 OK\r\n', |
58 'Server: BogusServer 1.0\r\n', |
58 'Server: BogusServer 1.0\r\n', |
59 'Content-Length: 6', |
59 'Content-Length: 6', |
60 '\r\n\r\n', |
60 '\r\n\r\n', |
61 "Thanks"] |
61 "Thanks"] |