Skip to content

Commit

Permalink
Fix example assertion typos in the advanced client docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shimmeris authored Mar 19, 2020
1 parent 72b5344 commit 0a847ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/client_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ the :attr:`~ClientResponse.history` attribute::

resp = await session.get('http://example.com/some/redirect/')
assert resp.status == 200
assert resp.url = URL('http://example.com/some/other/url/')
assert resp.url == URL('http://example.com/some/other/url/')
assert len(resp.history) == 1
assert resp.history[0].status == 301
assert resp.history[0].url = URL(
assert resp.history[0].url == URL(
'http://example.com/some/redirect/')

If no redirects occurred or ``allow_redirects`` is set to ``False``,
Expand Down

0 comments on commit 0a847ff

Please sign in to comment.