Work around for split not having a coherent way to work with/track updated versions of structures

This commit is contained in:
Calen Pennington
2014-08-26 16:49:41 -04:00
parent e624ff3b04
commit a205788c4d
4 changed files with 37 additions and 16 deletions

View File

@@ -208,8 +208,6 @@ class TemplateTests(unittest.TestCase):
# The draft course root has 2 revisions: the published revision, and then the subsequent
# changes to the draft revision
version_history = self.split_store.get_block_generations(test_course.location)
# Base calculations on the draft revision, not the initial published revision
version_history = version_history.children[0]
self.assertEqual(version_history.locator.version_guid, test_course.location.version_guid)
self.assertEqual(len(version_history.children), 1)
self.assertEqual(version_history.children[0].children, [])