def METHOD_NAME(self, mock_init):
    mock_init.side_effect = psutil.NoSuchProcess(123)
    self.assertEqual(PostmasterProcess.from_pid(123), None)
    mock_init.side_effect = None
    self.assertNotEqual(PostmasterProcess.from_pid(123), None)