'Scenario: When a Group Configuration is used, ensure that there are a warning icon and message.
Given I have a course with a Group Configuration containing two Groups
When I edit the Group Configuration
Then I see a warning icon and message'

def test_edit_warning_message_non_empty_usage(self):

    (config, _) = self.create_group_configuration_experiment([Group('0', 'Group    A'), Group('1', 'Group    B')], True)
    config.edit()
    self.assertTrue(config.edit_warning_icon_is_present)
    self.assertTrue(config.edit_warning_message_is_present)
    self.assertIn('This    configuration    is    currently    used    in    content    experiments.    If    you    make    changes    to    the    groups,    you    may    need    to    edit    those    experiments.', config.edit_warning_message_text)
