def METHOD_NAME(self, val):
    if self.client_id_to_replace is None:
        return val
    return val.replace(self.client_id_to_replace, MOCK_GUID).replace(self.client_secret_to_replace, MOCK_SECRET)