Skip to content

Commit

Permalink
add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 8, 2017
1 parent 7979401 commit 716e5c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_web_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,15 @@ def test_slow_request(make_srv):
make_srv(slow_request_timeout=0.01)


@asyncio.coroutine
def test_simple(srv, loop, buf):
srv.data_received(
b'GET / HTTP/1.1\r\n\r\n')

yield from asyncio.sleep(0, loop=loop)
assert buf.startswith(b'HTTP/1.1 200 OK\r\n')


@asyncio.coroutine
def test_bad_method(srv, loop, buf):
srv.data_received(
Expand Down

0 comments on commit 716e5c4

Please sign in to comment.