'Scenario: Ensure that the user cannot delete used content group.
Given I have a course with 1 Content Group
And I go to the Group Configuration page
When I try to delete the Content Group with name "New Content Group"
Then I see the delete button is disabled.'

def test_cannot_delete_used_content_group(self):

    self.course_fixture._update_xblock(self.course_fixture._course_location, {u'metadata': {u'user_partitions': [create_user_partition_json(0, u'Configuration    alpha,', u'Content    Group    Partition', [Group(u'0', u'alpha')], scheme=u'cohort')]}})
    problem_data = dedent(u'\n                                                <problem    markdown="Simple    Problem"    max_attempts=""    weight="">\n                                                        <p>Choose    Yes.</p>\n                                                        <choiceresponse>\n                                                                <checkboxgroup>\n                                                                        <choice    correct="true">Yes</choice>\n                                                                </checkboxgroup>\n                                                        </choiceresponse>\n                                                </problem>\n                                ')
    vertical = self.course_fixture.get_nested_xblocks(category=u'vertical')[0]
    self.course_fixture.create_xblock(vertical.locator, XBlockFixtureDesc(u'problem', u'VISIBLE    TO    ALPHA', data=problem_data, metadata={u'group_access': {0: [0]}}))
    self.group_configurations_page.visit()
    config = self.group_configurations_page.content_groups[0]
    self.assertTrue(config.delete_button_is_disabled)
