Commit 1c2452e4 by ichuang

make is_masquerading_as_student work with Mock for tests

parent 857a6e0b
......@@ -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
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