#NEWLINE# def testShouldCreateAndDeleteBucket( self ) : #NEWLINE# #INDENT# client = S3Client ( loadcredentials ( ) ) #NEWLINE# bucket_name = ( 'test-' + str ( uuid . uuid4 ( ) ) ) #NEWLINE# client . createBucket ( bucket_name ) #NEWLINE# self . failUnless ( client . bucketExists ( bucket_name ) ) #NEWLINE# bucket_list = client . listBuckets ( ) #NEWLINE# self . failUnless ( ( len ( bucket_list ) > 0 ) ) #NEWLINE# self . failUnless ( ( bucket_name in bucket_list ) ) #NEWLINE# client . deleteBucket ( bucket_name ) #NEWLINE# self . failIf ( client . bucketExists ( bucket_name ) )