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

Method test_read

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

Source from the content-addressed store, hash-verified

117 self.file = File(self.mock)
118
119 def test_read(self):
120 self.mock.set_eval_response(True, "hello world\n")
121 result = self.file.read("/etc/hostname")
122 self.assertEqual(result, "hello world")
123
124 def test_read_nil(self):
125 self.mock.set_eval_response(True, "__NIL__\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected