#NEWLINE# @ mock . patch . object ( sh , '_show_policy' ) #NEWLINE# def test_do_policy_show( self , mock_show ) : #NEWLINE# #INDENT# service = mock . Mock ( ) #NEWLINE# args = { #NEWLINE# #INDENT# 'id' : 'policy_id' , #NEWLINE# #UNINDENT# } #NEWLINE# args = self . _make_args ( args ) #NEWLINE# sh . do_policy_show ( service , args ) #NEWLINE# mock_show . assert_called_once_with ( mock_show , policy_id = 'policy_id' )