From 1c2452e401b8a2aa532bc3db00c366d436e24647 Mon Sep 17 00:00:00 2001 From: ichuang Date: Sat, 13 Apr 2013 21:38:12 -0400 Subject: [PATCH] make is_masquerading_as_student work with Mock for tests --- lms/djangoapps/courseware/masquerade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/masquerade.py b/lms/djangoapps/courseware/masquerade.py index 5b8e265094..e98b0e1df4 100644 --- a/lms/djangoapps/courseware/masquerade.py +++ b/lms/djangoapps/courseware/masquerade.py @@ -58,4 +58,4 @@ def is_masquerading_as_student(user): Return True if user is masquerading as a student, False otherwise ''' masq = getattr(user, 'masquerade_as_student', False) - return masq + return masq==True