#NEWLINE# def test_create_instance_with_volumes_disabled( self ) : #NEWLINE# #INDENT# bdm = [ { #NEWLINE# #INDENT# 'device_name' : 'foo' , #NEWLINE# #UNINDENT# } ] #NEWLINE# params = { #NEWLINE# #INDENT# 'block_device_mapping' : old_create , #NEWLINE# #UNINDENT# } #NEWLINE# old_create = compute_api . API . create #NEWLINE# def create( * args , **kwargs ) : #NEWLINE# #INDENT# self . assertNotIn ( block_device_mapping , kwargs ) #NEWLINE# return old_create ( * args , ** kwargs ) #NEWLINE# #UNINDENT# self . stubs . Set ( compute_api . API , 'create' , create ) #NEWLINE# self . _test_create ( params , override_controller = self . no_volumes_controller )