Skip to content

Commit

Permalink
Bring back the test for funny reason phrase
Browse files Browse the repository at this point in the history
Possible now that I've ditched mitmproxy < 2.
  • Loading branch information
vfaronov committed Mar 5, 2017
1 parent a7e2cb5 commit 5a2a687
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_fake_mitmdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def test_complex(bench): # pylint: disable=redefined-outer-name
content=b'{foo: "bar"}',
),
tutils.tresp(
http_version='HTTP/1.1', status_code=201, reason=u'Created',
http_version='HTTP/1.1',
status_code=201, reason=u'Très bien'.encode('iso-8859-1'),
headers=Headers([(b'Content-Type', b'text/plain'),
(b'Content-Length', b'14'),
(b'Date', b'Tue, 03 May 2016 14:13:34 GMT')]),
Expand Down Expand Up @@ -118,7 +119,7 @@ def test_complex(bench): # pylint: disable=redefined-outer-name
assert bench.report == (
b'------------ request: POST /foo-bar?baz=qux\n'
b'E 1038 Bad JSON body\n' +
b'------------ response: 201 Created\n' +
u'------------ response: 201 Très bien\n'.encode('utf-8') +
b'C 1073 Possibly missing Location header\n'
b'------------ request: GET /\n'
b'------------ response: 304 Not Modified\n'
Expand Down

0 comments on commit 5a2a687

Please sign in to comment.