def test_close_error():

    d = s3_deleter.Deleter()
    d.close()

    with pytest.raises(exception.UserCritical):
        d.delete('no value should work')
Ensure that attempts to use a closed Deleter results in an error.
dataset/ETHPy150Open wal-e/wal-e/tests/test_s3_deleter.py/test_close_error