'Test that enrollment track groups can be selected.'

def test_setting_enrollment_tracks(self):

    self.verify_component_group_visibility_messsage(self.html_component, 'Verified    Track')
    visibility_editor = self.edit_component_visibility(self.html_component)
    self.verify_current_groups_message(visibility_editor, self.VERIFIED_TRACK)
    self.verify_selected_partition_scheme(visibility_editor, self.ENROLLMENT_TRACK_PARTITION)
    self.verify_selected_groups(visibility_editor, [self.VERIFIED_TRACK])
    visibility_editor.cancel()
    self.select_and_verify_saved(self.html_component, self.ALL_LEARNERS_AND_STAFF)
    self.verify_component_group_visibility_messsage(self.html_component, None)
    self.select_and_verify_saved(self.html_component, self.ENROLLMENT_TRACK_PARTITION, [self.AUDIT_TRACK])
    self.verify_component_group_visibility_messsage(self.html_component, 'Audit    Track')
