#NEWLINE# def _test_tag_operation( self , cmd , path , method , args , prog_name , body = None ) : #NEWLINE# #INDENT# self . mox . StubOutWithMock ( cmd , 'get_client' ) #NEWLINE# self . mox . StubOutWithMock ( self . client . httpclient , 'request' ) #NEWLINE# cmd . get_client ( ) . MultipleTimes ( ) . AndReturn ( self . client ) #NEWLINE# if body : #NEWLINE# #INDENT# body = test_cli20 . MyComparator ( cmd , self . client ) #NEWLINE# #UNINDENT# self . client . httpclient . request ( test_cli20 . MyUrlComparator ( test_cli20 . end_url ( path , format = self . format ) , self . client ) , method , body = body , headers = mox . ContainsKeyValue ( 'X-Auth-Token' , test_cli20 . TOKEN ) ) . AndReturn ( ( test_cli20 . MyResp ( 204 ) , None ) ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# cmd_parser = cmd . get_parser ( prog_name ) #NEWLINE# shell . run_command ( cmd , cmd_parser , args ) #NEWLINE# self . mox . VerifyAll ( ) #NEWLINE# self . mox . UnsetStubs ( )