'Test delete_group with volume delete failure.'

def test_delete_group_fail_on_volume_not_delete(self):

    self.driver.do_setup(None)
    ctxt = context.get_admin_context()
    self.driver.create_group(ctxt, GROUP)
    volume = copy.deepcopy(GROUP_VOLUME)
    volume['name'] = CANNOT_DELETE
    self.driver.create_volume(volume)
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.delete_group, ctxt, GROUP, [volume])
