示例#1
0
 def test_find_line_returns_None(self) -> None:
     self.assertEqual(
         find_http_line(b'CONNECT python.org:443 HTTP/1.0'),
         (
             None,
             b'CONNECT python.org:443 HTTP/1.0',
         ),
     )
示例#2
0
 def test_find_line(self) -> None:
     self.assertEqual(
         find_http_line(b'CONNECT python.org:443 HTTP/1.0\r\n\r\n', ),
         (
             b'CONNECT python.org:443 HTTP/1.0',
             CRLF,
         ),
     )