Skip to content

Commit

Permalink
fixed aiohttp unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Mar 22, 2017
1 parent 0663d22 commit 2b62909
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_async_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def test_create_route(self, add_route):
app = web.Application()
mock_server = mock.MagicMock()
async_aiohttp.create_route(app, mock_server, '/foo')
self.assertEqual(add_route.call_count, 2)
add_route.assert_any_call('GET', '/foo', mock_server.handle_request)
print(add_route.call_args_list)
add_route.assert_any_call('GET', '/foo', mock_server.handle_request,
name=None)
add_route.assert_any_call('POST', '/foo', mock_server.handle_request)

def test_translate_request(self):
Expand Down

0 comments on commit 2b62909

Please sign in to comment.