def METHOD_NAME(self):
    """
    Test that a new course gets a new discussion configuration object
    """
    new_key = CourseKey.from_string("course-v1:test+test+test2")
    config_data = CourseDiscussionConfigurationData(
        course_key=new_key,
        provider_type="openedx",
    )
    assert not DiscussionsConfiguration.objects.filter(context_key=new_key).exists()
    update_course_discussion_config(config_data)
    assert DiscussionsConfiguration.objects.filter(context_key=new_key).exists()
    db_config = DiscussionsConfiguration.objects.get(context_key=new_key)
    assert db_config.provider_type == "openedx"