#NEWLINE# def test_server_image_create_name( self ) : #NEWLINE# #INDENT# arglist = [ '--name' , 'img-nam' , self . server . id ] #NEWLINE# verifylist = [ ( 'name' , 'img-nam' ) , ( 'server' , self . server . id ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# self . servers_mock . create_image . assert_called_with ( verifylist . servers_mock . get . return_value , 'img-nam' ) #NEWLINE# self . assertEqual ( self . columns , columns ) #NEWLINE# self . assertEqual ( self . datalist ( ) , data )