コード例 #1
0
ファイル: storage.py プロジェクト: AlcHawk/gcloud-python
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)
コード例 #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)
コード例 #3
0
ファイル: storage.py プロジェクト: AlcHawk/gcloud-python
 def setUpClass(cls):
     cls.connection = regression_utils.get_storage_connection()
コード例 #4
0
 def setUpClass(cls):
     cls.connection = regression_utils.get_storage_connection()