'GET /users/{id} (match payload).
Test Plan:
- Update policy to protect api by user_id
- List users with user_id of user1 as filter, to check that
this will correctly match user_id in the flattened
payload'

def test_get_user_protected_match_id(self):

    new_policy = {'identity:get_user': [['user_id:%(user_id)s']]}
    self._set_policy(new_policy)
    url_by_name = ('/users/%s' % self.user1['id'])
    r = self.get(url_by_name, auth=self.auth)
    self.assertEqual(self.user1['id'], r.result['user']['id'])
