def make_usage_id(course_key, category, url_name):
    return str(BlockUsageLocator(course_key, category, url_name))
Esempio n. 2
0
 def location(self):
     """Create a functional BlockUsageLocator for testing URL generation."""
     course_key = CourseLocator(org="mockx", course="100", run="2015")
     return BlockUsageLocator(course_key, block_type='mock_type', block_id="mock_id")