# Path: firebase_admin/storage.py
# _STORAGE_ATTRIBUTE = '_storage'
# def bucket(name=None, app=None) -> storage.Bucket:
#     def __init__(self, credentials, project, default_bucket):
#     def from_app(cls, app):
#     def bucket(self, name=None):
# class _StorageClient:


import time
from firebase_admin import storage
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Integration tests for firebase_admin.storage module."""



def test_default_bucket(project_id):
    bucket = storage.bucket()
    _verify_bucket(bucket, '{0}.appspot.com'.format(project_id))

def test_custom_bucket(project_id):
    bucket_name = '{0}.appspot.com'.format(project_id)
    bucket = storage.bucket(bucket_name)
    _verify_bucket(bucket, bucket_name)

def test_non_existing_bucket():

# Path: firebase_admin/storage.py
# _STORAGE_ATTRIBUTE = '_storage'
# def bucket(name=None, app=None) -> storage.Bucket:
#     def __init__(self, credentials, project, default_bucket):
#     def from_app(cls, app):
#     def bucket(self, name=None):
# class _StorageClient:


# Path: integration/test_storage.py
import time
from firebase_admin import storage

# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Integration tests for firebase_admin.storage module."""



def test_default_bucket(project_id):
    bucket = storage.bucket()
    _verify_bucket(bucket, '{0}.appspot.com'.format(project_id))

def test_custom_bucket(project_id):
    bucket_name = '{0}.appspot.com'.format(project_id)
    bucket = storage.bucket(bucket_name)
    _verify_bucket(bucket, bucket_name)

def test_non_existing_bucket():

    bucket = storage.bucket('non.existing')