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

Method test_readlink_nil

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

Source from the content-addressed store, hash-verified

140 self.assertEqual(result, "/usr/lib/libc.so.6")
141
142 def test_readlink_nil(self):
143 self.mock.set_eval_response(True, "__NIL__\n")
144 result = self.file.readlink("/not_a_link")
145 self.assertIsNone(result)
146
147 def test_fdpath(self):
148 self.mock.set_eval_response(True, "/dev/null\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
readlinkMethod · 0.80

Tested by

no test coverage detected