def METHOD_NAME(self):
    expected_error_msg = "pass does not exist in PATH"
    with mock.patch.object(Path, "is_file", return_value=False):
        with self.assertRaisesConfigError(expected_error_msg):
            self.srvpass.checkConfig("password", "temp")