Commit 716062a8 by Brian Jacobel Committed by Clinton Blackburn

Mako templates return context in .context_data rather than .context

parent ced6fb5b
...@@ -166,7 +166,7 @@ class TestAuthorizationView(TestCase): ...@@ -166,7 +166,7 @@ class TestAuthorizationView(TestCase):
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
# check form is in context and form params are valid # check form is in context and form params are valid
context = response.context # pylint: disable=no-member context = response.context_data # pylint: disable=no-member
self.assertIn('form', context) self.assertIn('form', context)
self.assertIsNone(context['form']['authorize'].value()) self.assertIsNone(context['form']['authorize'].value())
......
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