'Missing defined policy file should result in a default ruleset'

def test_policy_file_specified_but_not_found(self):

    self.config(policy_file='gobble.gobble', group='oslo_policy')
    enforcer = glance.api.policy.Enforcer()
    context = glance.context.RequestContext(roles=[])
    enforcer.enforce(context, 'get_image', {})
    self.assertRaises(exception.Forbidden, enforcer.enforce, context, 'manage_image_cache', {})
    admin_context = glance.context.RequestContext(roles=['admin'])
    enforcer.enforce(admin_context, 'manage_image_cache', {})
