Partially fix a test that wasn't actually setting a variable.

This still doesn't work for blocking reasons, but that's a TODO for later.

(imported from commit 8a1ebb5d0d964be95c9f458c254ef5767526bb24)
This commit is contained in:
Luke Faraone
2012-10-04 15:59:15 -04:00
parent e28373ec13
commit c3a9d60741

View File

@@ -420,7 +420,10 @@ class GetUpdatesTest(AuthedTestCase):
def callback(data):
# We can't make asserts in this nested function, so save the data
# and assert in the parent.
messages = data
#
# TODO: Find out how to make this blocking so assertEquals below
# runs after us.
messages.extend(data)
request = POSTRequestMock({"last": str(last_received), "first": "1"}, user, callback)
self.assertRaises(TornadoAsyncException, get_updates, request)