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

Method test_listdir_nil

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

Source from the content-addressed store, hash-verified

92 self.assertEqual(result, ["file1", "file2", "file3"])
93
94 def test_listdir_nil(self):
95 self.mock.set_eval_response(True, "__NIL__\n")
96 result = self.os.listdir("/nonexistent")
97 self.assertIsNone(result)
98
99 def test_listdir_empty(self):
100 self.mock.set_eval_response(True, "\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
listdirMethod · 0.80

Tested by

no test coverage detected