def test_client_base_bucket_raises_not_implemented() -> None: bucket = Bucket() blob: Blob = Blob(bucket, "foo", -1, -1, None, None) with pytest.raises(NotImplementedError): bucket.copy_blob(blob, bucket, "baz") with pytest.raises(NotImplementedError): bucket.get_blob("baz") with pytest.raises(NotImplementedError): bucket.delete_blobs([blob]) with pytest.raises(NotImplementedError): bucket.delete_blob(blob) with pytest.raises(NotImplementedError): bucket.exists()
def test_client_base_blob_raises_not_implemented() -> None: blob: Blob = Blob(Bucket(), "foo", -1, -1, None, None) with pytest.raises(NotImplementedError): blob.delete() with pytest.raises(NotImplementedError): blob.exists()