#NEWLINE# @ test . idempotent_id ( 'c7496f86-a350-11e5-b380-54ee756c66df' ) #NEWLINE# def test_filter_rbac_policies( self ) : #NEWLINE# #INDENT# policy = self . _create_qos_policy ( ) #NEWLINE# rbac_pol1 = self . admin_client . create_rbac_policy ( object_type = 'qos_policy' , object_id = policy [ 'id' ] , action = 'access_as_shared' , target_tenant = rbac_pol1 . client2 . tenant_id ) [ 'rbac_policy' ] #NEWLINE# rbac_pol2 = self . admin_client . create_rbac_policy ( object_type = 'qos_policy' , object_id = policy [ 'id' ] , action = 'access_as_shared' , target_tenant = self . admin_client . tenant_id ) [ 'rbac_policy' ] #NEWLINE# res1 = self . admin_client . list_rbac_policies ( id = rbac_pol1 [ 'id' ] ) [ 'rbac_policies' ] #NEWLINE# res2 = self . admin_client . list_rbac_policies ( id = rbac_pol2 [ 'id' ] ) [ 'rbac_policies' ] #NEWLINE# self . assertEqual ( 1 , len ( res1 ) ) #NEWLINE# self . assertEqual ( 1 , len ( res2 ) ) #NEWLINE# self . assertEqual ( rbac_pol1 [ 'id' ] , res1 [ 0 ] [ 'id' ] ) #NEWLINE# self . assertEqual ( rbac_pol2 [ 'id' ] , res2 [ 0 ] [ 'id' ] )