示例#1
0
 def test_read_multi(self):
     data = """
         Header: one
         Header: two
         \r\n
     """
     data = textwrap.dedent(data)
     data = data.strip()
     s = StringIO(data)
     headers = proxy.read_headers(s)
     assert headers["header"] == ["one", "two"]
示例#2
0
 def test_read_multi(self):
     data = """
         Header: one
         Header: two
         \r\n
     """
     data = textwrap.dedent(data)
     data = data.strip()
     s = StringIO(data)
     headers = proxy.read_headers(s)
     assert headers["header"] == ["one", "two"]
示例#3
0
 def test_read_continued(self):
     data = """
         Header: one
         \ttwo
         Header2: three
         \r\n
     """
     data = textwrap.dedent(data)
     data = data.strip()
     s = StringIO(data)
     headers = proxy.read_headers(s)
     assert headers["header"] == ['one\r\n two']
示例#4
0
 def test_read_continued(self):
     data = """
         Header: one
         \ttwo
         Header2: three
         \r\n
     """
     data = textwrap.dedent(data)
     data = data.strip()
     s = StringIO(data)
     headers = proxy.read_headers(s)
     assert headers["header"] == ['one\r\n two']