fix issues in test_context_refcounts that were unnoticed yet as they did not make the test fail

This commit is contained in:
Thomas Waldmann 2013-05-30 16:00:43 +02:00
parent ffd9296507
commit 51042f4c9f

View file

@ -87,8 +87,9 @@ class AppContextTestCase(FlaskTestCase):
with flask._app_ctx_stack.top:
with flask._request_ctx_stack.top:
pass
self.assert_true(flask._request_ctx_stack.request.environ
self.assert_true(flask._request_ctx_stack.top.request.environ
['werkzeug.request'] is not None)
return u''
c = app.test_client()
c.get('/')
self.assertEqual(called, ['request', 'app'])