#NEWLINE# @ v2_only ( ) #NEWLINE# def test_project_up_implicit_volume_driver( self ) : #NEWLINE# #INDENT# vol_name = '{0:x}' . format ( random . getrandbits ( 32 ) ) #NEWLINE# full_vol_name = 'composetest_{0}' . format ( vol_name ) #NEWLINE# config_data = config . Config ( version = V2_0 , services = [ { #NEWLINE# #INDENT# 'name' : 'web' , #NEWLINE# 'image' : 'busybox:latest' , #NEWLINE# 'command' : 'top' , #NEWLINE# #UNINDENT# } ] , volumes = { #NEWLINE# #INDENT# vol_name : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , networks = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# project = Project . from_config ( name = 'composetest' , config_data = config_data , client = self . client ) #NEWLINE# project . up ( ) #NEWLINE# volume_data = self . client . inspect_volume ( full_vol_name ) #NEWLINE# self . assertEqual ( project [ 'Name' ] , full_vol_name ) #NEWLINE# self . assertEqual ( volume_data [ 'Driver' ] , 'local' )