#NEWLINE# def test_website_redirect_ignore_paramfile( self ) : #NEWLINE# #INDENT# full_path = self . files . create_file ( 'foo.txt' , 'mycontent' ) #NEWLINE# cmdline = ( '%s %s s3://bucket/key.txt --website-redirect %s' % ( self . prefix , self . files . rootdir , 'http://someserver' ) ) #NEWLINE# self . parsed_responses = [ { #NEWLINE# #INDENT# 'CommonPrefixes' : [ ] , #NEWLINE# 'Contents' : [ ] , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'ETag' : '"c8afdb36c52cf4727836669019e69222"' , #NEWLINE# #UNINDENT# } ] #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 , 'PutObject' ) #NEWLINE# self . assertEqual ( self . operations_called [ 1 ] [ 1 ] [ 'WebsiteRedirectLocation' ] , 'http://someserver' )