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

def test_update_always_divide_inline_discussion_settings(self):

    config_course_cohorts(self.course, is_cohorted=True)
    response = self.get_handler(self.course, handler=course_discussions_settings_handler)
    expected_response = self.get_expected_response()
    self.assertEqual(response, expected_response)
    expected_response['always_divide_inline_discussions'] = True
    response = self.patch_handler(self.course, data=expected_response, handler=course_discussions_settings_handler)
    self.assertEqual(response, expected_response)
