• Home
  • Raw
  • Download

Lines Matching full:extradata

1054         extradata = "extradata"
1055 sock = FakeSocket(chunked_start + last_chunk + trailers + chunked_end + extradata)
1059 # the file should now have our extradata ready to be read
1060 self.assertEqual(sock.file.read(), extradata.encode("ascii")) #we read to the end
1065 extradata = b"extradata"
1067 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1071 # the file should now have our extradata ready to be read
1072 self.assertEqual(sock.file.read(), extradata) #we read to the end
1076 extradata = b"extradata"
1078 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1082 # the file should now have our extradata ready to be read
1083 self.assertEqual(sock.file.read(), extradata) #we read to the end
1087 extradata = b"extradata"
1089 sock = FakeSocket(b'HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\n' + expected + extradata)
1093 # the file should now have our extradata ready to be read
1094 self.assertEqual(sock.file.read(), extradata) #we read to the end
1098 extradata = b"extradata"
1100 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: 30\r\n\r\n' + expected*3 + extradata)
1117 # the file should now have our extradata ready to be read
1118 self.assertEqual(sock.file.read(), extradata) #we read to the end