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

Method test_getpid

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

Source from the content-addressed store, hash-verified

59 self.os = OS(self.mock)
60
61 def test_getpid(self):
62 self.mock.set_eval_response(True, "12345\n")
63 result = self.os.getpid()
64 self.assertEqual(result, 12345)
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")

Callers

nothing calls this directly

Calls 2

set_eval_responseMethod · 0.80
getpidMethod · 0.80

Tested by

no test coverage detected