blob: f585d43ee4ad8d00f78f7f5bfc672b8a3b139884 [file]
# Copyright 2015 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 unittest
import infra.path_hacks.depot_tools
class DepotToolsPathTest(unittest.TestCase):
def test_check_valid_depot_tools_path(self):
# This supposes that all proper sibling directories have been checked out.
depot_tools_path = infra.path_hacks.depot_tools._depot_tools
self.assertTrue(os.path.isdir(depot_tools_path),
msg='Path %s cannot be found, make sure you have checked'
' out this repository with gclient.' % depot_tools_path)