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

Method test_kill

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

Source from the content-addressed store, hash-verified

70 self.assertIsNone(result)
71
72 def test_kill(self):
73 self.mock.set_eval_response(True, "0\n")
74 result = self.os.kill(1234, 15)
75 self.assertEqual(result, 0)
76 self.assertIn("OS.kill(1234, 15)", self.mock.eval_calls[-1])
77
78 def test_kill_invalid(self):
79 self.mock.set_eval_response(True, "-1\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
killMethod · 0.80

Tested by

no test coverage detected