Skip to content

Commit

Permalink
app_test.py: Use coroutine version of fetch
Browse files Browse the repository at this point in the history
Avoid tornado getting confused and stopping/starting the ioloop
incorrectly
  • Loading branch information
chfoo committed Aug 7, 2014
1 parent b7dae04 commit 017db59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpull/app_test.py
Expand Up @@ -87,7 +87,7 @@ def test_one_page(self):
exit_code = yield app.run()
self.assertTrue(os.path.exists('index.html'))

response = self.fetch('/')
response = yield self.http_client.fetch(self.get_url('/'))

with open('index.html', 'rb') as in_file:
self.assertEqual(response.body, in_file.read())
Expand Down

0 comments on commit 017db59

Please sign in to comment.