def METHOD_NAME(self):
    res = subprocess.run(['dsl-compile', '--help'], capture_output=True)
    self.assertIn('Deprecated. Please use `kfp dsl compile` instead.)',
                  res.stdout.decode('utf-8'))