Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Unified Diff: tools/telemetry/telemetry/util/path_set_unittest.py

Issue 1174743002: Move find_dependencies and related files to internal/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase from the cloud_storage move landing. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/util/path_set.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/util/path_set_unittest.py
diff --git a/tools/telemetry/telemetry/util/path_set_unittest.py b/tools/telemetry/telemetry/util/path_set_unittest.py
deleted file mode 100755
index b205b93eaac7a1862175f9e8dceb54a29b515556..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/util/path_set_unittest.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-# 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 unittest
-
-from telemetry.util import path_set
-
-
-class PathSetTest(unittest.TestCase):
- def testCreate(self):
- ps = path_set.PathSet()
- self.assertEqual(len(ps), 0) # Check __len__.
- self.assertFalse(__file__ in ps)
- for _ in ps: # Check __iter__.
- self.fail('New set is not empty.')
-
- ps = path_set.PathSet([__file__])
- self.assertEqual(len(ps), 1)
- self.assertTrue(__file__ in ps)
- self.assertEqual(ps.pop(), os.path.realpath(__file__))
-
- def testAdd(self):
- ps = path_set.PathSet()
- ps.add(__file__)
- self.assertEqual(len(ps), 1)
- self.assertTrue(__file__ in ps)
- self.assertEqual(ps.pop(), os.path.realpath(__file__))
-
- def testDiscard(self):
- ps = path_set.PathSet([__file__])
- ps.discard(__file__)
- self.assertEqual(len(ps), 0)
- self.assertFalse(__file__ in ps)
-
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « tools/telemetry/telemetry/util/path_set.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698