#NEWLINE# def test_rb_force_deletes_bucket_on_success( self ) : #NEWLINE# #INDENT# cmd = RbCommand ( self . session ) #NEWLINE# self . session . register ( 'before-call' , self . handler ) #NEWLINE# self . responses [ 'ListObjects' ] = [ ( StatusCode ( 200 ) , { #NEWLINE# #INDENT# 'Contents' : [ { #NEWLINE# #INDENT# 'Key' : 'foo' , #NEWLINE# 'Size' : 100 , #NEWLINE# 'LastModified' : '2016-03-01T23:50:13.000Z' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) ] #NEWLINE# self . responses [ 'DeleteObject' ] = [ ( StatusCode ( 200 ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] #NEWLINE# self . responses [ 'DeleteBucket' ] = [ ( StatusCode ( 200 ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] #NEWLINE# global_args = FakeArgs ( endpoint_url = None , region = None , verify_ssl = None ) #NEWLINE# rc = cmd ( [ 's3://bucket/' , '--force' ] , global_args ) #NEWLINE# self . assertEqual ( self . method_calls , [ 'ListObjects' , 'DeleteObject' , 'DeleteBucket' ] ) #NEWLINE# self . assertEqual ( rc , 0 )