Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt istr #1015

Merged
merged 14 commits into from
Jul 29, 2016
Prev Previous commit
Next Next commit
Fix http parser tests
  • Loading branch information
asvetlov committed Jul 29, 2016
commit 17c012095bc13a49ca6db74cbfd82f8d072e20bb
7 changes: 4 additions & 3 deletions tests/test_http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def test_parse_headers(self):
hdrs)

self.assertEqual(list(headers.items()),
[('TEST', 'line\r\n continue'), ('TEST2', 'data')])
[('Test', 'line\r\n continue'),
('Test2', 'data')])
self.assertEqual(raw_headers,
[(b'TEST', b'line\r\n continue'),
(b'TEST2', b'data')])
Expand All @@ -42,8 +43,8 @@ def test_parse_headers_multi(self):
hdrs)

self.assertEqual(list(headers.items()),
[('SET-COOKIE', 'c1=cookie1'),
('SET-COOKIE', 'c2=cookie2')])
[('Set-Cookie', 'c1=cookie1'),
('Set-Cookie', 'c2=cookie2')])
self.assertEqual(raw_headers,
[(b'SET-COOKIE', b'c1=cookie1'),
(b'SET-COOKIE', b'c2=cookie2')])
Expand Down