def make_usage_id(course_key, category, url_name): return str(BlockUsageLocator(course_key, category, url_name))
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")