Lines Matching full:extradata
1077 extradata = "extradata"
1078 sock = FakeSocket(chunked_start + last_chunk + trailers + chunked_end + extradata)
1082 # the file should now have our extradata ready to be read
1083 self.assertEqual(sock.file.read(), extradata.encode("ascii")) #we read to the end
1088 extradata = b"extradata"
1090 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1094 # the file should now have our extradata ready to be read
1095 self.assertEqual(sock.file.read(), extradata) #we read to the end
1099 extradata = b"extradata"
1101 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1105 # the file should now have our extradata ready to be read
1106 self.assertEqual(sock.file.read(), extradata) #we read to the end
1110 extradata = b"extradata"
1112 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1116 # the file should now have our extradata ready to be read
1117 self.assertEqual(sock.file.read(), extradata) #we read to the end
1121 extradata = b"extradata"
1123 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1128 # the file should now have our extradata ready to be read
1129 self.assertEqual(sock.file.read(), extradata) #we read to the end
1133 extradata = b"extradata"
1135 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 30\r\n\r\n' + expected*3 + extradata)
1140 # the file should now have our extradata ready to be read
1141 self.assertEqual(sock.file.read(), extradata) #we read to the end