'Imports the course in root_dir into the given course_id and verifies its content'

def check_import(self, root_dir, content_store, course_id):

    import_course_from_xml(self.store, self.user.id, root_dir, ['test_export'], static_content_store=content_store, target_id=course_id)
    self.check_populated_course(course_id)
    def verify_export_attrs_removed(attributes):
        'Verifies    all    temporary    attributes    added    during    export    are    removed'
        self.assertNotIn('index_in_children_list', attributes)
        self.assertNotIn('parent_sequential_url', attributes)
        self.assertNotIn('parent_url', attributes)
    vertical = self.store.get_item(course_id.make_usage_key('vertical', self.TEST_VERTICAL))
    verify_export_attrs_removed(vertical.xml_attributes)
    for child in vertical.get_children():
        verify_export_attrs_removed(child.xml_attributes)
        if hasattr(child, 'data'):
            verify_export_attrs_removed(child.data)
