do the metadata comparison on the parent not the course as we don't actually know which vertical we ended up picking (could be arbitrary).

This commit is contained in:
Chris Dodge
2013-03-02 19:36:11 -05:00
parent 7fa77769c8
commit bcea53d4b7

View File

@@ -465,7 +465,9 @@ class ContentStoreTest(ModuleStoreTestCase):
# check for grace period definition which should be defined at the course level
self.assertIn('graceperiod', new_module.metadata)
self.assertEqual(course.metadata['graceperiod'], new_module.metadata['graceperiod'])
self.assertEqual(parent.metadata['graceperiod'], new_module.metadata['graceperiod'])
self.assertEqual(course.metadata['xqa_key'], new_module.metadata['xqa_key'])
#
# now let's define an override at the leaf node level