Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Check remark in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vfaronov committed Jul 29, 2016
1 parent 11bde0d commit b1d8ced
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_har_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def load_from_file(name):
def test_http2bin_chrome():
exchanges = load_from_file('http2bin_chrome.har')

assert u'http2bin_chrome.har' in exchanges[0].request.remark
assert exchanges[0].request.version is None
assert u'http2bin_chrome.har' in exchanges[0].responses[0].remark
assert exchanges[0].responses[0].version is None
assert exchanges[0].responses[0].body is Unavailable

Expand Down
2 changes: 2 additions & 0 deletions test/test_streams_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def test_complex_connection():
[exch1, exch2, exch3, exch4, exch5, exch6] = \
load_from_file('complex_connection')

assert u'complex_connection' in exch1.request.remark
assert exch1.request.method == m.POST
assert exch1.request.target == u'/articles/'
assert exch1.request.version == http11
Expand All @@ -35,6 +36,7 @@ def test_complex_connection():
assert repr(exch1.request) == '<Request POST>'

assert len(exch1.responses) == 3
assert u'complex_connection' in exch1.responses[0].remark
assert exch1.responses[0].status == st.continue_
assert repr(exch1.responses[0].status) == 'StatusCode(100)'
assert exch1.responses[0].body == b''
Expand Down

0 comments on commit b1d8ced

Please sign in to comment.