'Scenario: divide inline discussion topic.
Given I have a course with a divide defined,
And a inline discussion topic with disabled Save button
And When I click on inline discussion topic
And I see enabled save button
And When i click save button
Then I see success message
When I reload the page
Then I see the discussion topic selected'

def test_divide_inline_discussion_topic(self):

    self.check_discussion_topic_visibility()
    divided_topics_before = self.discussion_management_page.get_divided_topics_count(self.inline_key)
    self.discussion_management_page.select_discussion_topic(self.inline_key)
    self.assertFalse(self.discussion_management_page.is_save_button_disabled(self.inline_key))
    self.save_and_verify_discussion_topics(key=self.inline_key)
    divided_topics_after = self.discussion_management_page.get_divided_topics_count(self.inline_key)
    self.assertNotEqual(divided_topics_before, divided_topics_after)
    self.verify_discussion_topics_after_reload(self.inline_key, divided_topics_after)
