#NEWLINE# def test_create_delete_l3_policy_with_routers( self ) : #NEWLINE# #INDENT# with self . router ( ) as router1 : #NEWLINE# #INDENT# with self . router ( ) as router2 : #NEWLINE# #INDENT# routers = [ router1 [ 'router' ] [ 'id' ] , router2 [ 'router' ] [ 'id' ] ] #NEWLINE# l3p = self . create_l3_policy ( routers = routers ) #NEWLINE# l3p_id = l3p [ 'l3_policy' ] [ 'id' ] #NEWLINE# self . assertEqual ( sorted ( router2 ) , sorted ( l3p [ 'l3_policy' ] [ 'routers' ] ) ) #NEWLINE# req = self . new_show_request ( 'l3_policies' , l3p_id , fmt = self . fmt ) #NEWLINE# res = self . deserialize ( self . fmt , req . get_response ( self . ext_api ) ) #NEWLINE# self . assertEqual ( sorted ( routers ) , sorted ( res [ 'l3_policy' ] [ 'routers' ] ) ) #NEWLINE# req = self . new_delete_request ( 'l3_policies' , l3p_id ) #NEWLINE# res = req . get_response ( self . ext_api ) #NEWLINE# self . assertEqual ( webob . exc . HTTPNoContent . code , res . status_int )