#NEWLINE# def test_full_returns( self ) : #NEWLINE# #INDENT# '\n        test cmd_iter\n        ' #NEWLINE# ret = self . client . cmd_full_return ( 'minion' , 'test.ping' ) #NEWLINE# self . assertIn ( 'minion' , ret ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'ret' : True , #NEWLINE# 'success' : True , #NEWLINE# #UNINDENT# } , ret [ 'minion' ] ) #NEWLINE# ret = self . client . cmd_full_return ( 'minion' , 'test.pong' ) #NEWLINE# self . assertIn ( 'minion' , ret ) #NEWLINE# if ( self . master_opts [ 'transport' ] == 'zeromq' ) : #NEWLINE# #INDENT# self . assertEqual ( { #NEWLINE# #INDENT# 'out' : 'nested' , #NEWLINE# 'ret' : "'test.pong' is not available." , #NEWLINE# 'success' : False , #NEWLINE# #UNINDENT# } , ret [ 'minion' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . master_opts [ 'transport' ] == 'raet' ) : #NEWLINE# #INDENT# self . assertEqual ( { #NEWLINE# #INDENT# 'success' : False , #NEWLINE# 'ret' : "'test.pong' is not available." , #NEWLINE# #UNINDENT# } , ret [ 'minion' ] )