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

Method test_getpid_failure

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

Source from the content-addressed store, hash-verified

65 self.assertIn("OS.getpid()", self.mock.eval_calls[-1])
66
67 def test_getpid_failure(self):
68 self.mock.set_eval_response(False, None, "error")
69 result = self.os.getpid()
70 self.assertIsNone(result)
71
72 def test_kill(self):
73 self.mock.set_eval_response(True, "0\n")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
getpidMethod · 0.80

Tested by

no test coverage detected