'Verifies the content of the given course, per data that was populated in import_and_populate_course'

def check_populated_course(self, course_id):

    items = self.store.get_items(course_id, qualifiers={'category': 'vertical'}, revision=ModuleStoreEnum.RevisionOption.published_only)
    self.check_verticals(items)
    def verify_item_publish_state(item, publish_state):
        'Verifies    the    publish    state    of    the    item    is    as    expected.'
        self.assertEqual(self.store.has_published_version(item), publish_state)
    def get_and_verify_publish_state(item_type, item_name, publish_state):
        '\n                                                Gets    the    given    item    from    the    store    and    verifies    the    publish    state\n                                                of    the    item    is    as    expected.\n                                                '
        item = self.store.get_item(course_id.make_usage_key(item_type, item_name))
        verify_item_publish_state(item, publish_state)
        return item
    vertical = get_and_verify_publish_state('vertical', self.TEST_VERTICAL, True)
    for child in vertical.get_children():
        verify_item_publish_state(child, True)
    self.assertTrue(getattr(vertical, 'is_draft', False))
    sequential = get_and_verify_publish_state('sequential', self.SEQUENTIAL, True)
    self.assertFalse(getattr(sequential, 'is_draft', False))
    private_vertical = get_and_verify_publish_state('vertical', self.PRIVATE_VERTICAL, False)
    public_vertical = get_and_verify_publish_state('vertical', self.PUBLISHED_VERTICAL, True)
    draft_html = self.store.get_item(course_id.make_usage_key('html', self.DRAFT_HTML))
    self.assertTrue(getattr(draft_html, 'is_draft', False))
    draft_video = self.store.get_item(course_id.make_usage_key('video', self.DRAFT_VIDEO))
    self.assertTrue(getattr(draft_video, 'is_draft', False))
    for vert in [vertical, private_vertical, public_vertical]:
        self.assertIn(vert.location, sequential.children)
    self.assertIn(draft_html.location, public_vertical.children)
    self.assertIn(draft_video.location, public_vertical.children)
    course = self.store.get_course(course_id)
    self.assertGreater(len(course.textbooks), 0)
    self.assertAssetsEqual(self.LOCKED_ASSET_KEY, self.LOCKED_ASSET_KEY.course_key, course_id)
    html_module = self.store.get_item(course_id.make_usage_key('html', 'nonportable'))
    self.assertIn('/static/foo.jpg', html_module.data)
    return course
