#NEWLINE# def test_replace_tag( self ) : #NEWLINE# #INDENT# cmd = tag . ReplaceTag ( test_cli20 . MyApp ( sys . stdout ) , None ) #NEWLINE# path = self . _make_tags_path ( 'network' , 'myid' ) #NEWLINE# args = [ '--resource-type' , 'network' , '--resource' , 'myid' , '--tag' , 'red' , '--tag' , 'blue' ] #NEWLINE# body = { #NEWLINE# #INDENT# 'tags' : [ 'red' , 'blue' ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . _test_tag_operation ( cmd , path , 'PUT' , args , 'tag-replace' , body = body )