'Creates a new content group and verifies that it was properly created.'

def create_and_verify_content_group(self, name, existing_groups):

    self.assertEqual(existing_groups, len(self.group_configurations_page.content_groups))
    if (existing_groups == 0):
        self.group_configurations_page.create_first_content_group()
    else:
        self.group_configurations_page.add_content_group()
    config = self.group_configurations_page.content_groups[existing_groups]
    config.name = name
    self.assertEqual(config.get_text(u'.action-primary'), u'Create')
    self.assertFalse(config.delete_button_is_present)
    config.save()
    self.assertIn(name, config.name)
    return config
