From 50e2e833a2415e396b0bcaea3eea52a18f4b686c Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Tue, 10 Dec 2013 18:23:54 -0500 Subject: [PATCH] Added comment as requested --- common/djangoapps/external_auth/tests/test_ssl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/djangoapps/external_auth/tests/test_ssl.py b/common/djangoapps/external_auth/tests/test_ssl.py index 43c42edfa3..266938fdf0 100644 --- a/common/djangoapps/external_auth/tests/test_ssl.py +++ b/common/djangoapps/external_auth/tests/test_ssl.py @@ -238,6 +238,9 @@ class SSLClientTest(TestCase): dec_mock = external_auth.views.ssl_login_shortcut(self.mock) request = self._create_normal_request(self.MOCK_URL) request.user = AnonymousUser() + # Call decorated mock function to make sure it passes + # the call through without hitting the external_auth functions and + # thereby creating an external auth map object. dec_mock(request) self.assertTrue(self.mock.called) self.assertEqual(0, len(ExternalAuthMap.objects.all()))