diff --git a/common/lib/xmodule/xmodule/tests/test_import.py b/common/lib/xmodule/xmodule/tests/test_import.py
index 77532959d7..3f2c005268 100644
--- a/common/lib/xmodule/xmodule/tests/test_import.py
+++ b/common/lib/xmodule/xmodule/tests/test_import.py
@@ -349,6 +349,23 @@ class ImportTestCase(unittest.TestCase):
sa_id = "edX/sa_test/2012_Fall"
location = Location(["i4x", "edX", "sa_test", "selfassessment", "SampleQuestion"])
+ # import ipdb; ipdb.set_trace()
sa_sample = modulestore.get_instance(sa_id, location)
#10 attempts is hard coded into SampleQuestion, which is the url_name of a selfassessment xml tag
self.assertEqual(sa_sample.metadata['attempts'], '10')
+
+ def test_graphicslidertool_import(self):
+ '''
+ Check to see if definition_from_xml in gst_module.py
+ works properly. Pulls data from the graphic_slider_tool directory
+ in the test data directory.
+ '''
+ modulestore = XMLModuleStore(DATA_DIR, course_dirs=['graphic_slider_tool'])
+
+ sa_id = "edX/gst_test/2012_Fall"
+ location = Location(["i4x", "edX", "gst_test", "graphical_slider_tool", "sample_gst"])
+ gst_sample = modulestore.get_instance(sa_id, location)
+ render_string_from_sample_gst_xml = """
+ \
+""".strip()
+ self.assertEqual(gst_sample.definition['render'], render_string_from_sample_gst_xml)
diff --git a/common/test/data/graphic_slider_tool/course/2012_Fall.xml b/common/test/data/graphic_slider_tool/course/2012_Fall.xml
index a51e027c2e..2983c85dd5 100644
--- a/common/test/data/graphic_slider_tool/course/2012_Fall.xml
+++ b/common/test/data/graphic_slider_tool/course/2012_Fall.xml
@@ -1,5 +1,5 @@
-
+
diff --git a/common/test/data/graphic_slider_tool/gst/sample_gst.xml b/common/test/data/graphic_slider_tool/graphical_slider_tool/sample_gst.xml
similarity index 55%
rename from common/test/data/graphic_slider_tool/gst/sample_gst.xml
rename to common/test/data/graphic_slider_tool/graphical_slider_tool/sample_gst.xml
index 21b6483efe..bd0360fde8 100644
--- a/common/test/data/graphic_slider_tool/gst/sample_gst.xml
+++ b/common/test/data/graphic_slider_tool/graphical_slider_tool/sample_gst.xml
@@ -1,18 +1,7 @@
-
+
-
Graphic slider tool: Dynamic range and implicit functions.
-
-
You can make x range (not ticks of x axis) of functions to depend on
- parameter value. This can be useful when function domain depends
- on parameter.
-
Also implicit functons like circle can be plotted as 2 separate
- functions of same color.