• Home
  • Raw
  • Download

Lines Matching full:extradata

1125         extradata = "extradata"
1126 sock = FakeSocket(chunked_start + last_chunk + trailers + chunked_end + extradata)
1130 # the file should now have our extradata ready to be read
1131 self.assertEqual(sock.file.read(), extradata.encode("ascii")) #we read to the end
1136 extradata = b"extradata"
1138 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1142 # the file should now have our extradata ready to be read
1143 self.assertEqual(sock.file.read(), extradata) #we read to the end
1147 extradata = b"extradata"
1149 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1153 # the file should now have our extradata ready to be read
1154 self.assertEqual(sock.file.read(), extradata) #we read to the end
1158 extradata = b"extradata"
1160 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1164 # the file should now have our extradata ready to be read
1165 self.assertEqual(sock.file.read(), extradata) #we read to the end
1169 extradata = b"extradata"
1171 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1176 # the file should now have our extradata ready to be read
1177 self.assertEqual(sock.file.read(), extradata) #we read to the end
1181 extradata = b"extradata"
1183 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 30\r\n\r\n' + expected*3 + extradata)
1188 # the file should now have our extradata ready to be read
1189 self.assertEqual(sock.file.read(), extradata) #we read to the end