From d74f952b3716810bbfd56afb99cfb0a0e676d53c Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Fri, 7 Jun 2013 15:26:30 -0400 Subject: [PATCH] updates masquerade unit test to account for new show answer button with problems --- lms/djangoapps/courseware/tests/test_masquerade.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lms/djangoapps/courseware/tests/test_masquerade.py b/lms/djangoapps/courseware/tests/test_masquerade.py index 11cdc4c1f9..f9ddf88b5f 100644 --- a/lms/djangoapps/courseware/tests/test_masquerade.py +++ b/lms/djangoapps/courseware/tests/test_masquerade.py @@ -64,7 +64,7 @@ class TestStaffMasqueradeAsStudent(LoginEnrollmentTestCase): def test_staff_debug_for_staff(self): resp = self.get_cw_section() sdebug = '
Staff Debug Info
' - + self.assertTrue(sdebug in resp.content) @@ -84,9 +84,9 @@ class TestStaffMasqueradeAsStudent(LoginEnrollmentTestCase): resp = self.get_cw_section() sdebug = '
Staff Debug Info
' - + self.assertFalse(sdebug in resp.content) - + def get_problem(self): pun = 'H1P1' problem_location = "i4x://edX/graded/problem/%s" % pun @@ -105,7 +105,7 @@ class TestStaffMasqueradeAsStudent(LoginEnrollmentTestCase): resp = self.get_problem() html = json.loads(resp.content)['html'] print html - sabut = '' + sabut = '' self.assertTrue(sabut in html) def test_no_showanswer_for_student(self): @@ -116,5 +116,5 @@ class TestStaffMasqueradeAsStudent(LoginEnrollmentTestCase): resp = self.get_problem() html = json.loads(resp.content)['html'] print html - sabut = '' + sabut = '' self.assertFalse(sabut in html)