#NEWLINE# def test_op_dir( self ) : #NEWLINE# #INDENT# '\n        Format a paths for directory operation.  There are slashes at the\n        end of the paths.\n        ' #NEWLINE# src = ( '.' + os . sep ) #NEWLINE# dest = 's3://kyknapp/golfVid/' #NEWLINE# parameters = { #NEWLINE# #INDENT# 'dir_op' : True , #NEWLINE# #UNINDENT# } #NEWLINE# files = self . file_format . format ( src , dest , files ) #NEWLINE# ref_files = { #NEWLINE# #INDENT# 'src' : { #NEWLINE# #INDENT# 'path' : ( os . path . abspath ( src ) + os . sep ) , #NEWLINE# 'type' : 'local' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'dest' : { #NEWLINE# #INDENT# 'path' : 'kyknapp/golfVid/' , #NEWLINE# 'type' : 's3' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'dir_op' : True , #NEWLINE# 'use_src_name' : True , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( files , ref_files )