diff --git a/common/lib/xmodule/xmodule/tests/test_import.py b/common/lib/xmodule/xmodule/tests/test_import.py index aedca1d058..a838c6e3fd 100644 --- a/common/lib/xmodule/xmodule/tests/test_import.py +++ b/common/lib/xmodule/xmodule/tests/test_import.py @@ -382,7 +382,7 @@ class ImportTestCase(BaseCourseTestCase): self.assertEqual(len(video.url_name), len('video_') + 12) - def test_poll_and_conditional_xmodule(self): + def test_poll_and_conditional_import(self): modulestore = XMLModuleStore(DATA_DIR, course_dirs=['conditional_and_poll']) course = modulestore.get_courses()[0] @@ -423,6 +423,22 @@ class ImportTestCase(BaseCourseTestCase): """.strip() self.assertEqual(gst_sample.render, render_string_from_sample_gst_xml) + def test_word_cloud_import(self): + modulestore = XMLModuleStore(DATA_DIR, course_dirs=['word_cloud']) + + course = modulestore.get_courses()[0] + chapters = course.get_children() + ch1 = chapters[0] + sections = ch1.get_children() + + self.assertEqual(len(sections), 1) + + location = course.location + location = Location(location.tag, location.org, location.course, + 'sequential', 'Problem_Demos') + module = modulestore.get_instance(course.id, location) + self.assertEqual(len(module.children), 2) + def test_cohort_config(self): """ Check that cohort config parsing works right.