#NEWLINE# @ skipIf ( ( _docker_py_version ( ) < ( 1 , 5 , 0 ) ) , 'docker module must be installed to run this test or is too old. >=1.5.0' ) #NEWLINE# def test_inspect_volume( self , * args ) : #NEWLINE# #INDENT# '\n        test inspect volume.\n        ' #NEWLINE# __salt__ = { #NEWLINE# #INDENT# 'config.get' : Mock ( ) , #NEWLINE# 'mine.send' : Mock ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# client = Mock ( ) #NEWLINE# client . api_version = '1.21' #NEWLINE# with patch . dict ( dockerng_mod . __dict__ , { #NEWLINE# #INDENT# '__salt__' : __salt__ , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# with patch . dict ( dockerng_mod . __context__ , { #NEWLINE# #INDENT# 'docker.client' : client , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# dockerng_mod . inspect_volume ( 'foo' ) #NEWLINE# #UNINDENT# #UNINDENT# client . inspect_volume . assert_called_once_with ( 'foo' )