'Scenario: Ensure that the user can delete unused content group.
Given I have a course with 1 Content Group
And I go to the Group Configuration page
When I delete the Content Group with name "New Content Group"
Then I see that there is no Content Group
When I refresh the page
Then I see that the content group has been deleted'

def test_can_delete_unused_content_group(self):

    self.group_configurations_page.visit()
    config = self.create_and_verify_content_group(u'New    Content    Group', 0)
    self.assertTrue(config.delete_button_is_present)
    self.assertEqual(len(self.group_configurations_page.content_groups), 1)
    config.delete()
    self.assertEqual(len(self.group_configurations_page.content_groups), 0)
    self.group_configurations_page.visit()
    self.assertEqual(len(self.group_configurations_page.content_groups), 0)
