#NEWLINE# def test_glacier_sync_with_force_glacier( self ) : #NEWLINE# #INDENT# self . parsed_responses = [ { #NEWLINE# #INDENT# 'Contents' : [ { #NEWLINE# #INDENT# 'Key' : 'foo/bar.txt' , #NEWLINE# 'ContentLength' : '100' , #NEWLINE# 'LastModified' : '00:00:00Z' , #NEWLINE# 'StorageClass' : 'GLACIER' , #NEWLINE# 'Size' : 100 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'CommonPrefixes' : [ ] , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'ETag' : '"foo-1"' , #NEWLINE# 'Body' : six . BytesIO ( b'foo' ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# cmdline = ( '%s s3://bucket/foo %s --force-glacier-transfer' % ( self . prefix , self . files . rootdir ) ) #NEWLINE# self . run_cmd ( cmdline , expected_rc = 0 ) #NEWLINE# self . assertEqual ( len ( self . operations_called ) , 2 , self . operations_called ) #NEWLINE# self . assertEqual ( self . operations_called [ 0 ] [ 0 ] . name , 'ListObjects' ) #NEWLINE# self . assertEqual ( self . operations_called [ 1 ] [ 0 ] . name , 'GetObject' )