From 9c3e727889e5b7a45def57f6909bcb1b77c92c95 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 23 Jan 2013 15:14:36 -0500 Subject: [PATCH] add unit test to assert that the flag is not set on course metadata --- cms/djangoapps/contentstore/tests/tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cms/djangoapps/contentstore/tests/tests.py b/cms/djangoapps/contentstore/tests/tests.py index 2597ac64fd..3025ee78a4 100644 --- a/cms/djangoapps/contentstore/tests/tests.py +++ b/cms/djangoapps/contentstore/tests/tests.py @@ -364,6 +364,16 @@ class ContentStoreTest(TestCase): effort = ms.get_item(Location(['i4x','edX','full','about','end_date', None])) self.assertEqual(effort.definition['data'],'TBD') + def test_remove_hide_progress_tab(self): + import_from_xml(modulestore(), 'common/test/data/', ['full']) + + ms = modulestore('direct') + cs = contentstore() + + source_location = CourseDescriptor.id_to_location('edX/full/6.002_Spring_2012') + course = ms.get_item(source_location) + self.assertNotIn('hide_progress_tab', course.metadata) + def test_clone_course(self): import_from_xml(modulestore(), 'common/test/data/', ['full'])