'Test case for deleting resource without backing policy.
Deleting a resource for which there is no backing policy succeeds
silently.'

def test_delete_policy_non_existent(self):

    self._setup_test_stack(self.policy_template)
    resource = self.stack['my_policy']
    del self.fake_auto_scale.policies['0']
    scheduler.TaskRunner(resource.delete)()
    self.assertEqual({}, self.fake_auto_scale.policies)
