'Test case for correct error handling during deletion.
Only the Forbidden (403) error is honored as an indicator of pending
deletion; other errors cause deletion to fail.'

def test_delete_blows_up_on_other_errors(self):

    self._setup_test_stack()
    def delete(group_id):
        (1 / 0)
    self.patchobject(self.fake_auto_scale, 'delete', side_effect=delete)
    resource = self.stack['my_group']
    err = self.assertRaises(exception.ResourceFailure, scheduler.TaskRunner(resource.delete))
    self.assertIsInstance(err.exc, ZeroDivisionError)
