def setUpModule(): if 'test_bucket' not in SHARED_BUCKETS: connection = regression_utils.get_storage_connection() # %d rounds milliseconds to nearest integer. bucket_name = 'new%d' % (1000 * time.time(),) # In the **very** rare case the bucket name is reserved, this # fails with a ConnectionError. SHARED_BUCKETS['test_bucket'] = connection.create_bucket(bucket_name)
def setUpClass(cls): cls.connection = regression_utils.get_storage_connection()