def METHOD_NAME(*args, **kwargs):
    filename = kwargs["filename"]
    bucket = storage["resource"]
    # check that file doesn't exist on the bucket
    assert not self.client.file_exists(bucket=bucket, filename=filename)
    func(*args, **kwargs)
    # check that file exists on the bucket
    assert self.client.file_exists(bucket=bucket, filename=filename)