Commit 9bf1a6e2 by Alexander Kryklia

add docstring and test for gst

parent 100da2ae
...@@ -39,9 +39,12 @@ def strip_filenames(descriptor): ...@@ -39,9 +39,12 @@ def strip_filenames(descriptor):
class RoundTripTestCase(unittest.TestCase): class RoundTripTestCase(unittest.TestCase):
'''Check that our test courses roundtrip properly''' ''' Check that our test courses roundtrip properly.
Same course imported , than exported, then imported again.
And we compare original import with second import (after export).
Thus we make sure that export and import work properly.
'''
def check_export_roundtrip(self, data_dir, course_dir): def check_export_roundtrip(self, data_dir, course_dir):
# import ipdb; ipdb.set_trace()
root_dir = path(mkdtemp()) root_dir = path(mkdtemp())
print "Copying test course to temp dir {0}".format(root_dir) print "Copying test course to temp dir {0}".format(root_dir)
...@@ -120,5 +123,4 @@ class RoundTripTestCase(unittest.TestCase): ...@@ -120,5 +123,4 @@ class RoundTripTestCase(unittest.TestCase):
def test_graphicslidertool_roundtrip(self): def test_graphicslidertool_roundtrip(self):
#Test graphicslidertool xmodule to see if it exports correctly #Test graphicslidertool xmodule to see if it exports correctly
# import ipdb; ipdb.set_trace()
self.check_export_roundtrip(DATA_DIR,"graphic_slider_tool") self.check_export_roundtrip(DATA_DIR,"graphic_slider_tool")
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