]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Response of None on failure
authorKyle Kelley <kyle.kelley@rackspace.com>
Sat, 25 Jan 2014 15:22:10 +0000 (08:22 -0700)
committerKyle Kelley <kyle.kelley@rackspace.com>
Thu, 8 May 2014 18:42:21 +0000 (13:42 -0500)
docs/overview.rst
tornado/test/websocket_test.py

index f066b47d05b077e5e843dbf3762e098b3740b92e..229411914a7980f0c1125ef2dc5a074fda5598e4 100644 (file)
@@ -296,7 +296,7 @@ directory as your Python file, you could render this template with:
             self.render("template.html", title="My title", items=items)
 
 Tornado templates support *control statements* and *expressions*.
-Control statements are surronded by ``{%`` and ``%}``, e.g.,
+Control statements are surrounded by ``{%`` and ``%}``, e.g.,
 ``{% if len(items) > 2 %}``. Expressions are surrounded by ``{{`` and
 ``}}``, e.g., ``{{ items[0] }}``.
 
index 87dae7697342070992ae05031ca856ccec78d4a6..dae5d88b5a981fafd18c562cfc3b4054884c1da1 100644 (file)
@@ -202,7 +202,7 @@ class WebSocketTest(AsyncHTTPTestCase):
 
         response = yield ws.read_message()
 
-        self.assertEqual(response, 'hello')
+        self.assertEqual(response, None)
         ws.close()
         yield self.close_future