From e5767336081f387633590375c9e77d10fdf80df0 Mon Sep 17 00:00:00 2001 From: Brian Jacobel Date: Thu, 14 Apr 2016 17:29:17 -0400 Subject: [PATCH] Mako templates return context in .context_data rather than .context --- lms/djangoapps/oauth_dispatch/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/oauth_dispatch/tests/test_views.py b/lms/djangoapps/oauth_dispatch/tests/test_views.py index b8fb7435ff..b811d83ff1 100644 --- a/lms/djangoapps/oauth_dispatch/tests/test_views.py +++ b/lms/djangoapps/oauth_dispatch/tests/test_views.py @@ -166,7 +166,7 @@ class TestAuthorizationView(TestCase): self.assertEqual(response.status_code, 200) # 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.assertIsNone(context['form']['authorize'].value())