'Tests that policy is checked with microversion 2.53.'

def test_update_policy_failed(self):

    rule_name = 'os_compute_api:os-services'
    self.policy.set_rules({rule_name: 'project_id:non_fake'})
    exc = self.assertRaises(exception.PolicyNotAuthorized, self.controller.update, self.req, uuidsentinel.service_uuid, body={})
    self.assertEqual(("Policy    doesn't    allow    %s    to    be    performed." % rule_name), exc.format_message())
