'Verify that course_discussions_settings_handler is working for divided_inline_discussions via HTTP PATCH.'

def test_update_inline_discussion_settings(self):

    config_course_cohorts(self.course, is_cohorted=True)
    response = self.get_handler(self.course, handler=views.course_discussions_settings_handler)
    expected_response = self.get_expected_response()
    self.assertEqual(response, expected_response)
    now = datetime.now()
    ItemFactory.create(parent_location=self.course.location, category='discussion', discussion_id='Topic_A', discussion_category='Chapter', discussion_target='Discussion', start=now)
    expected_response['divided_inline_discussions'] = ['Topic_A']
    response = self.patch_handler(self.course, data=expected_response, handler=views.course_discussions_settings_handler)
    self.assertEqual(response, expected_response)
