'Same as test_assigned_event but uses the published branch'

def test_assigned_event_published(self):

    self.store.publish(self.course.location, self.user_id)
    with self.store.branch_setting(ModuleStoreEnum.Branch.published_only):
        self.lc_block = self.store.get_item(self.lc_block.location)
        self._bind_course_module(self.lc_block)
        self.lc_block.xmodule_runtime.publish = self.publisher
        self.test_assigned_event()
