def CLTVersion():
  # pkgutil output looks like
  #   package-id: com.apple.pkg.CLTools_Executables
  #   version: 5.0.1.0.1.1382131676
  #   volume: /
  #   location: /
  #   install-time: 1382544035
  #   groups: com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg-group com.apple.DevToolsNonRelocatableShared.pkg-group
  STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
  FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI"
  MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables"

  regex = re.compile('version: (?P<version>.+)')
  for key in [MAVERICKS_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID]:
    try:
      output = GetStdout(['/usr/sbin/pkgutil', '--pkg-info', key])
      return re.search(regex, output).groupdict()['version']
    except:
      continue
Test that a regular user can direct message staff
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/xcode_emulation.py/CLTVersion--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UserDetailViewTest.test_direct_message_staff