Skip to content

Commit

Permalink
Fixed a typo in docs/testing (#2791)
Browse files Browse the repository at this point in the history
  • Loading branch information
schepelin authored and asvetlov committed Mar 4, 2018
1 parent 791bad4 commit 430091a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ functionality, the AioHTTPTestCase is provided::
# tests that are asynchronous
@unittest_run_loop
async def test_example(self):
request = await self.client.request("GET", "/")
assert request.status == 200
text = await request.text()
resp = await self.client.request("GET", "/")
assert resp.status == 200
text = await resp.text()
assert "Hello, world" in text

# a vanilla example
Expand Down

0 comments on commit 430091a

Please sign in to comment.