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

Function test_no_error

tests/test_files.py:8–14  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

6
7
8def test_no_error(tmpdir):
9 p = str(tmpdir.join('somefile'))
10 with files.DeleteOnError(p) as doe:
11 doe.f.write(b'hello')
12
13 with open(p, 'rb') as f:
14 assert f.read() == b'hello'
15
16
17def test_clear_on_error(tmpdir):

Callers

nothing calls this directly

Calls 3

writeMethod · 0.80
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected