(self)
| 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") |
nothing calls this directly
no test coverage detected