Example #1
0
 def test_description_locator_version(self):
     definition_locator = DescriptionLocator("chapter12345_2")
     self.assertEqual("chapter12345_2", definition_locator.version())
Example #2
0
 def test_description_locator_url(self):
     definition_locator = DescriptionLocator("chapter12345_2")
     self.assertEqual('edx://' + URL_VERSION_PREFIX + 'chapter12345_2', definition_locator.url())