| Index: tools/telemetry/telemetry/util/path_unittest.py
|
| diff --git a/tools/telemetry/telemetry/util/path_unittest.py b/tools/telemetry/telemetry/util/path_unittest.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2352c75f12caf20053244da69f4393ede3020788
|
| --- /dev/null
|
| +++ b/tools/telemetry/telemetry/util/path_unittest.py
|
| @@ -0,0 +1,21 @@
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import os
|
| +import sys
|
| +import unittest
|
| +
|
| +from telemetry import decorators
|
| +from telemetry.util import path
|
| +
|
| +
|
| +class PathTest(unittest.TestCase):
|
| + def testIsExecutable(self):
|
| + self.assertFalse(path.IsExecutable('nonexistent_file'))
|
| + self.assertTrue(path.IsExecutable(sys.executable))
|
| +
|
| + @decorators.Enabled('win')
|
| + def testFindInstalledWindowsApplication(self):
|
| + self.assertTrue(path.FindInstalledWindowsApplication(os.path.join(
|
| + 'Internet Explorer', 'iexplore.exe')))
|
|
|