def CheckSignature(file):
  proc = subprocess.Popen(['codesign', '-v', file], stdout=subprocess.PIPE)
  o = proc.communicate()[0].strip()
  assert not proc.returncode
  if "code object is not signed at all" in o:
    print 'File %s not properly signed.' % (file)
    test.fail_test()
dataset/ETHPy150Open adblockplus/gyp/test/ios/gyptest-per-config-settings.py/CheckSignature/original