'Although stored as compressed data, CourseStructure.structure_json should always return the uncompressed string.'

def test_structure_json(self):

    course_id = 'a/b/c'
    structure = {'root': course_id, 'blocks': {course_id: {'id': course_id}}}
    structure_json = json.dumps(structure)
    structure = CourseStructure.objects.create(course_id=self.course.id, structure_json=structure_json)
    self.assertEqual(structure.structure_json, structure_json)
    cs = CourseStructure.objects.get(course_id=self.course.id)
    self.assertEqual(cs.structure_json, structure_json)
