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

Function test_close_error

tests/test_wabs_deleter.py:87–94  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

85
86
87def test_close_error():
88 """Ensure that attempts to use a closed Deleter results in an error."""
89
90 d = wabs_deleter.Deleter(BlockBlobService('test', 'ing'), 'test-container')
91 d.close()
92
93 with pytest.raises(exception.UserCritical):
94 d.delete('no value should work')
95
96
97def test_processes_one_deletion(collect):

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected