Ensure that attempts to use a closed Deleter results in an error.
()
| 91 | |
| 92 | |
| 93 | def test_close_error(): |
| 94 | """Ensure that attempts to use a closed Deleter results in an error.""" |
| 95 | |
| 96 | d = s3_deleter.Deleter() |
| 97 | d.close() |
| 98 | |
| 99 | with pytest.raises(exception.UserCritical): |
| 100 | d.delete('no value should work') |
| 101 | |
| 102 | |
| 103 | def test_processes_one_deletion(b, collect): |