def METHOD_NAME(self):
    project_id = "cloud-custodian"
    resource_name = "custodian-delete-test"
    factory = self.replay_flight_data('dns-managed-zone-delete')
    p = self.load_policy(
        {'name': 'gcp-dns-managed-zone-delete',
         'resource': 'gcp.dns-managed-zone',
         'filters': [{'name': resource_name}],
         'actions': ['delete']},
        session_factory=factory
    )
    resources = p.run()
    self.assertEqual(len(resources), 1)
    client = p.resource_manager.get_client()
    result = client.execute_query('list', {"project": project_id})
    self.assertNotIn(resource_name, result['managedZones'])