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

Method test_listdir

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

Source from the content-addressed store, hash-verified

87 self.assertIn("OS.tgkill(100, 101, 9)", self.mock.eval_calls[-1])
88
89 def test_listdir(self):
90 self.mock.set_eval_response(True, "file1\nfile2\nfile3\n")
91 result = self.os.listdir("/tmp")
92 self.assertEqual(result, ["file1", "file2", "file3"])
93
94 def test_listdir_nil(self):
95 self.mock.set_eval_response(True, "__NIL__\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
listdirMethod · 0.80

Tested by

no test coverage detected