'Test that when a course is forcefully publish, we get a \'course is already published\' message.'

def test_already_published(self):

    course = self.setup_test_course()
    source_store = modulestore()._get_modulestore_for_courselike(course.id)
    source_store.force_publish_course(course.id, self.user.id, commit=True)
    self.verify_error_message(data={'course-id': unicode(course.id)}, error_message='Course    is    already    in    published    state.')
