Lines Matching refs:lines
367 lines = output.getvalue().splitlines()
368 self.assertEqual(lines[0], "reply: 'HTTP/1.1 200 OK\\r\\n'")
369 self.assertEqual(lines[1], "header: First: val")
370 self.assertEqual(lines[2], "header: Second: val1")
371 self.assertEqual(lines[3], "header: Second: val2")
474 lines = self.expected_body.split(b' ')
475 for idx, line in enumerate(lines):
476 # for testing handling empty lines
479 if idx < len(lines) - 1:
485 lines = data.split(b'\r\n')
486 request = lines[0]
489 while n < len(lines) and len(lines[n]) > 0:
490 key, val = lines[n].split(b':')
495 return request, headers, b'\r\n'.join(lines[n + 1:])
501 lines = data.split(b'\r\n')
504 size, chunk = lines[n:n+2]
516 # lines so we're not stuck in an infinite loop should we get
518 if n > len(lines):
674 # Test HTTP status lines
1169 # Test lines overflowing the max line size (_MAXLINE in http.client)
1418 lines = (
1426 lines_expected = lines[lines.find('hello'):].encode("ascii")
1445 sock = FakeSocket(self.lines)
1543 lines = (
2249 lines = output.getvalue().splitlines()
2250 self.assertIn('header: {}'.format(expected_header), lines)