#NEWLINE# @ test . idempotent_id ( '9f85c76a-a350-11e5-8ae5-54ee756c66df' ) #NEWLINE# def test_policy_target_update( self ) : #NEWLINE# #INDENT# res = self . _make_admin_policy_shared_to_tenant_id ( self . client . tenant_id ) #NEWLINE# update_res = self . admin_client . update_rbac_policy ( res [ 'rbac_policy' ] [ 'id' ] , target_tenant = self . client2 . tenant_id ) #NEWLINE# self . assertEqual ( self . client2 . tenant_id , update_res [ 'rbac_policy' ] [ 'target_tenant' ] ) #NEWLINE# res [ 'rbac_policy' ] . pop ( 'target_tenant' ) #NEWLINE# update_res [ 'rbac_policy' ] . pop ( 'target_tenant' ) #NEWLINE# self . assertEqual ( res [ 'rbac_policy' ] , update_res [ 'rbac_policy' ] )