Commit 6f535d9e by Diana Huang

Fix test rendering so we can parse the problem during tests without it breaking.

parent 9545a82a
......@@ -18,6 +18,7 @@ import capa.calc as calc
import xmodule
from xmodule.x_module import ModuleSystem
from mock import Mock
import xml.sax.saxutils as saxutils
open_ended_grading_interface = {
'url': 'http://sandbox-grader-001.m.edx.org/peer_grading',
......
......@@ -106,7 +106,7 @@ class ConditionalModuleTest(unittest.TestCase):
html = module.get_html()
print "html type: ", type(html)
print "html: ", html
html_expect = "{'ajax_url': 'courses/course_id/modx/a_location', 'element_id': 'i4x-edX-cond_test-conditional-condone', 'id': 'i4x://edX/cond_test/conditional/condone'}"
html_expect = "<div>{'ajax_url': 'courses/course_id/modx/a_location', 'element_id': 'i4x-edX-cond_test-conditional-condone', 'id': 'i4x://edX/cond_test/conditional/condone'}</div>"
self.assertEqual(html, html_expect)
gdi = module.get_display_items()
......
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