Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
 def setUpClass(cls):
     cls.connection = regression_utils.get_storage_connection()
Ejemplo n.º 4
0
 def setUpClass(cls):
     cls.connection = regression_utils.get_storage_connection()