'Scenario: Category should be deselected on deselecting final child.
Given I have a course with a cohort defined,
And a inline discussion with disabled Save button.
When I click on final child topics
Then I see enabled saved button
Then I see parent category to be deselected.'

def test_verify_that_deselecting_the_final_child_deselects_category(self):

    self.check_discussion_topic_visibility()
    self.assertFalse(self.discussion_management_page.is_category_selected())
    self.discussion_management_page.select_discussion_topic(self.inline_key)
    self.assertTrue(self.discussion_management_page.is_category_selected())
    self.discussion_management_page.select_discussion_topic(self.inline_key)
    self.assertFalse(self.discussion_management_page.is_category_selected())
