Commit fdc79b30 by Ben McMorran Committed by cahrens

Adds edit info to instantiated xblock in update_item

parent 9524c212
......@@ -618,13 +618,10 @@ class TestMixedModuleStore(unittest.TestCase):
self.assertEqual(parent, self.course_locations[self.XML_COURSEID1])
def verify_get_parent_locations_results(self, expected_results):
def branch_agnostic(location):
return location if location is None else location.for_branch(None)
for child_location, parent_location, revision in expected_results:
self.assertEqual(
branch_agnostic(parent_location),
branch_agnostic(self.store.get_parent_location(child_location, revision=revision))
parent_location,
self.store.get_parent_location(child_location, revision=revision)
)
@ddt.data('draft', 'split')
......
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