def METHOD_NAME(self):
    """Verifies validation fails if the resource type
        does not use diagnostic settings.
    """
    policy = {
        'name': 'test-azure-tag',
        'resource': 'azure.vm',
        'filters': [
            {
                'type': 'diagnostic-settings',
                'key': "logs[*][].enabled",
                'op': 'in',
                'value_type': 'swap',
                'value': True
            }
        ]
    }
    self.assertRaises(
        PolicyValidationError, self.load_policy, policy, validate=True)