Index: tools/telemetry/telemetry/internal/util/command_line_unittest.py |
diff --git a/tools/telemetry/telemetry/internal/util/command_line_unittest.py b/tools/telemetry/telemetry/internal/util/command_line_unittest.py |
deleted file mode 100644 |
index 22e96556f4345a448e5fe02378d227d3d85eebe4..0000000000000000000000000000000000000000 |
--- a/tools/telemetry/telemetry/internal/util/command_line_unittest.py |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-# 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 unittest |
- |
-from telemetry.internal.util import command_line |
- |
- |
-class BenchmarkFoo(object): |
- """ Benchmark Foo for testing.""" |
- @classmethod |
- def Name(cls): |
- return 'FooBenchmark' |
- |
- |
-class BenchmarkBar(object): |
- """ Benchmark Bar for testing long description line.""" |
- @classmethod |
- def Name(cls): |
- return 'BarBenchmarkkkkk' |
- |
- |
-class UnusualBenchmark(object): |
- @classmethod |
- def Name(cls): |
- return 'I have a very unusual name' |
- |
- |
-class CommandLineUnittest(unittest.TestCase): |
- def testGetMostLikelyMatchedObject(self): |
- # Test moved from telemetry/benchmark_runner_unittest.py |
- all_benchmarks = [BenchmarkFoo, BenchmarkBar, UnusualBenchmark] |
- self.assertEquals( |
- [BenchmarkFoo, BenchmarkBar], |
- command_line.GetMostLikelyMatchedObject( |
- all_benchmarks, 'BenchmarkFooz', name_func=lambda x: x.Name())) |
- |
- self.assertEquals( |
- [BenchmarkBar, BenchmarkFoo], |
- command_line.GetMostLikelyMatchedObject( |
- all_benchmarks, 'BarBenchmark', name_func=lambda x: x.Name())) |
- |
- self.assertEquals( |
- [UnusualBenchmark], |
- command_line.GetMostLikelyMatchedObject( |
- all_benchmarks, 'unusual', name_func=lambda x: x.Name())) |