#NEWLINE# def test_update_l3_policy_with_all_params( self ) : #NEWLINE# #INDENT# resource = 'l3_policy' #NEWLINE# cmd = gbp . UpdateL3Policy ( test_cli20 . MyApp ( sys . stdout ) , None ) #NEWLINE# name = 'myname' #NEWLINE# description = 'My L3 Policy' #NEWLINE# my_id = 'someid' #NEWLINE# subnet_prefix_length = '24' #NEWLINE# external_segment = 'seg_uuid1=1.1.1.0:2.2.2.0' #NEWLINE# expected_external_segments = { #NEWLINE# #INDENT# 'seg_uuid1' : [ '1.1.1.0' , '2.2.2.0' ] , #NEWLINE# #UNINDENT# } #NEWLINE# shared = 'true' #NEWLINE# routers = 'uuid1,uuid2' #NEWLINE# args = [ '--name' , name , '--description' , description , '--subnet-prefix-length' , subnet_prefix_length , '--external-segment' , external_segment , '--routers' , routers , '--shared' , shared , my_id ] #NEWLINE# params = { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'description' : description , #NEWLINE# 'subnet_prefix_length' : 24 , #NEWLINE# 'external_segments' : expected_external_segments , #NEWLINE# 'routers' : routers , #NEWLINE# 'routers' : [ 'uuid1' , 'uuid2' ] , #NEWLINE# 'shared' : shared , #NEWLINE# #UNINDENT# } #NEWLINE# self . _test_update_resource ( resource , cmd , my_id , args , params )