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"]
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']