'Returns a course hierarchy to test with.'

def get_course_hierarchy(self):

    return [{'org': 'UserPartitionTransformer', 'course': 'UP101F', 'run': 'test_run', 'user_partitions': [self.user_partition], '#type': 'course', '#ref': 'course', '#children': [{'#type': 'vertical', '#ref': 'A', 'metadata': {'group_access': {self.user_partition.id: [0, 1, 2, 3]}}}, {'#type': 'vertical', '#ref': 'B'}]}, {'#type': 'vertical', '#ref': 'C', '#parents': ['A'], 'metadata': {'group_access': {self.user_partition.id: [1, 2]}}, '#children': [{'#type': 'vertical', '#ref': 'F'}, {'#type': 'vertical', '#ref': 'G', 'metadata': {'group_access': {self.user_partition.id: [1]}}}, {'#type': 'vertical', '#ref': 'H', 'metadata': {'group_access': {self.user_partition.id: [2]}}}]}, {'#type': 'vertical', '#ref': 'D', '#parents': ['A'], 'metadata': {'group_access': {self.user_partition.id: [2, 3]}}, '#children': [{'#type': 'vertical', '#ref': 'I'}]}, {'#type': 'vertical', '#ref': 'E', '#parents': ['A'], '#children': [{'#type': 'vertical', '#ref': 'J'}]}, {'#type': 'vertical', '#ref': 'K', '#parents': ['E'], 'metadata': {'group_access': {self.user_partition.id: [4]}}, '#children': [{'#type': 'vertical', '#ref': 'N'}]}, {'#type': 'vertical', '#ref': 'L', '#parents': ['G'], 'metadata': {'group_access': {self.user_partition.id: [1, 2]}}}, {'#type': 'vertical', '#ref': 'M', '#parents': ['G', 'H'], 'metadata': {'group_access': {self.user_partition.id: [1, 2, 3]}}}, {'#type': 'vertical', '#ref': 'O', '#parents': ['K', 'B']}]
