Fixed typos in tests/template_tests/test_context.py.

This commit is contained in:
Tim Graham 2019-02-21 09:40:22 -05:00
parent 9ff18c08c3
commit 0ac4e51b2c
1 changed files with 2 additions and 4 deletions

View File

@ -231,12 +231,10 @@ class RequestContextTests(SimpleTestCase):
self.assertEqual(engine.from_string('{% include "child" only %}').render(ctx), 'none')
def test_stack_size(self):
"""
#7116 -- Optimize RequetsContext construction
"""
"""Optimized RequestContext construction (#7116)."""
request = self.request_factory.get('/')
ctx = RequestContext(request, {})
# The stack should now contain 3 items:
# The stack contains 4 items:
# [builtins, supplied context, context processor, empty dict]
self.assertEqual(len(ctx.dicts), 4)