MCPcopy Create free account
hub / github.com/wal-e/wal-e / test_close_error

Function test_close_error

tests/test_s3_deleter.py:93–100  ·  view source on GitHub ↗

Ensure that attempts to use a closed Deleter results in an error.

()

Source from the content-addressed store, hash-verified

91
92
93def 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
103def test_processes_one_deletion(b, collect):

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected