def METHOD_NAME(self):
    self._authorize_account()
    with pytest.raises(BucketIdNotFound):
        self.api.get_bucket_by_id("this id doesn't even exist")
    created_bucket = self.api.create_bucket('bucket1', 'allPrivate')
    read_bucket = self.api.get_bucket_by_id(created_bucket.id_)
    assert created_bucket.id_ == read_bucket.id_
    self.cache.save_bucket(Bucket(api=self.api, name='bucket_name', id_='bucket_id'))
    read_bucket = self.api.get_bucket_by_id('bucket_id')
    assert read_bucket.name == 'bucket_name'