Commit 82929ea4 by Sheng

Changed string to bytes

parent 191bb109
......@@ -116,7 +116,7 @@ class TestApp(AsyncHTTPTestCase):
ws_url = url + 'ws?id=' + worker_id
ws = yield tornado.websocket.websocket_connect(ws_url)
msg = yield ws.read_message()
self.assertIn('Welcome!', msg)
self.assertIn(b'Welcome!', msg)
ws.close()
@tornado.testing.gen_test
......@@ -135,6 +135,6 @@ class TestApp(AsyncHTTPTestCase):
ws_url = url + 'ws?id=' + worker_id
ws = yield tornado.websocket.websocket_connect(ws_url)
msg = yield ws.read_message()
self.assertIn('Welcome!', msg)
self.assertIn(b'Welcome!', msg)
yield ws.write_message('bye')
ws.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment