Skip to content

Commit

Permalink
Additional test for #436
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jul 10, 2015
1 parent 66ea73e commit ef0d23e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_web_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,3 +867,20 @@ def go():
yield from resp.release()

self.loop.run_until_complete(go())

def test_get_with_empty_arg_with_equal(self):

@asyncio.coroutine
def handler(request):
self.assertIn('arg', request.GET)
self.assertEqual('', request.GET['arg'])
return web.Response()

@asyncio.coroutine
def go():
_, srv, url = yield from self.create_server('GET', '/', handler)
resp = yield from request('GET', url+'?arg=', loop=self.loop)
self.assertEqual(200, resp.status)
yield from resp.release()

self.loop.run_until_complete(go())

0 comments on commit ef0d23e

Please sign in to comment.