'Test that the enrollment track scheme is visible if there are multiple enrollment tracks,
and that the selection can be persisted.
Also verifies that the cohort division scheme is not presented if cohorts are disabled and cohorts
are not the selected division scheme.'

def test_radio_buttons_with_multiple_enrollment_modes(self):

    self.add_modes_and_view_discussion_mgmt_page(['audit', 'verified'])
    self.assertTrue(self.discussion_management_page.division_scheme_visible(self.discussion_management_page.ENROLLMENT_TRACK_SCHEME))
    self.assertTrue(self.discussion_management_page.division_scheme_visible(self.discussion_management_page.COHORT_SCHEME))
    self.discussion_management_page.select_division_scheme(self.discussion_management_page.ENROLLMENT_TRACK_SCHEME)
    self.verify_save_confirmation_message(self.scheme_key)
    self.check_discussion_topic_visibility(visible=True)
    self.disable_cohorting(self.course_fixture)
    self.reload_page(topics_visible=True)
    self.assertEqual(self.discussion_management_page.ENROLLMENT_TRACK_SCHEME, self.discussion_management_page.get_selected_scheme())
    self.assertFalse(self.discussion_management_page.division_scheme_visible(self.discussion_management_page.COHORT_SCHEME))
