diff --git a/common/lib/xmodule/xmodule/tests/test_export.py b/common/lib/xmodule/xmodule/tests/test_export.py
index 7605155a6c..f92d58db03 100644
--- a/common/lib/xmodule/xmodule/tests/test_export.py
+++ b/common/lib/xmodule/xmodule/tests/test_export.py
@@ -124,3 +124,7 @@ class RoundTripTestCase(unittest.TestCase):
def test_graphicslidertool_roundtrip(self):
#Test graphicslidertool xmodule to see if it exports correctly
self.check_export_roundtrip(DATA_DIR,"graphic_slider_tool")
+
+ def test_exam_registration_roundtrip(self):
+ # Test exam_registration xmodule to see if it exports correctly
+ self.check_export_roundtrip(DATA_DIR,"test_exam_registration")
diff --git a/common/lib/xmodule/xmodule/xml_module.py b/common/lib/xmodule/xmodule/xml_module.py
index bb5b44c67f..9ad36f633d 100644
--- a/common/lib/xmodule/xmodule/xml_module.py
+++ b/common/lib/xmodule/xmodule/xml_module.py
@@ -94,12 +94,18 @@ class XmlDescriptor(XModuleDescriptor):
'start', 'due', 'graded', 'display_name', 'url_name', 'hide_from_toc',
'ispublic', # if True, then course is listed for all users; see
'xqa_key', # for xqaa server access
+ # information about testcenter exams is a dict (of dicts), not a string,
+ # so it cannot be easily exportable as a course element's attribute.
+ 'testcenter_info',
# VS[compat] Remove once unused.
'name', 'slug')
metadata_to_strip = ('data_dir',
- # VS[compat] -- remove the below attrs once everything is in the CMS
- 'course', 'org', 'url_name', 'filename')
+ # information about testcenter exams is a dict (of dicts), not a string,
+ # so it cannot be easily exportable as a course element's attribute.
+ 'testcenter_info',
+ # VS[compat] -- remove the below attrs once everything is in the CMS
+ 'course', 'org', 'url_name', 'filename')
# A dictionary mapping xml attribute names AttrMaps that describe how
# to import and export them
diff --git a/common/test/data/test_exam_registration/README.md b/common/test/data/test_exam_registration/README.md
new file mode 100644
index 0000000000..5097fe8798
--- /dev/null
+++ b/common/test/data/test_exam_registration/README.md
@@ -0,0 +1,2 @@
+Simple course with test center exam information included in policy.json.
+
diff --git a/common/test/data/test_exam_registration/course.xml b/common/test/data/test_exam_registration/course.xml
new file mode 120000
index 0000000000..49041310f6
--- /dev/null
+++ b/common/test/data/test_exam_registration/course.xml
@@ -0,0 +1 @@
+roots/2012_Fall.xml
\ No newline at end of file
diff --git a/common/test/data/test_exam_registration/course/2012_Fall.xml b/common/test/data/test_exam_registration/course/2012_Fall.xml
new file mode 100644
index 0000000000..77eca9f46c
--- /dev/null
+++ b/common/test/data/test_exam_registration/course/2012_Fall.xml
@@ -0,0 +1,15 @@
+Welcome
+
+
Isn't the toy course great?
diff --git a/common/test/data/test_exam_registration/html/toylab.xml b/common/test/data/test_exam_registration/html/toylab.xml new file mode 100644 index 0000000000..ab78aeb494 --- /dev/null +++ b/common/test/data/test_exam_registration/html/toylab.xml @@ -0,0 +1 @@ +