MCPcopy Create free account
hub / github.com/Ahmeth4n/renef / test_write_failure

Method test_write_failure

bindings/python/tests/test_api.py:161–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159 self.assertTrue(self.file.write("/tmp/dump.bin", 0x7f000000, 4096))
160
161 def test_write_failure(self):
162 self.mock.set_eval_response(True, "false\n")
163 self.assertFalse(self.file.write("/readonly/file", 0x7f000000, 4096))
164
165
166# ============================================================

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected