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

Unified Diff: tools/telemetry/third_party/typ/typ/tests/arg_parser_test.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: tools/telemetry/third_party/typ/typ/tests/arg_parser_test.py
diff --git a/tools/telemetry/third_party/typ/typ/tests/arg_parser_test.py b/tools/telemetry/third_party/typ/typ/tests/arg_parser_test.py
deleted file mode 100644
index e603ecdc79e5254f5086a462aeae973a66911275..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/typ/typ/tests/arg_parser_test.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2014 Dirk Pranke. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import optparse
-import unittest
-
-from typ import ArgumentParser
-
-
-class ArgumentParserTest(unittest.TestCase):
-
- def test_optparse_options(self):
- parser = optparse.OptionParser()
- ArgumentParser.add_option_group(parser, 'foo',
- discovery=True,
- running=True,
- reporting=True,
- skip='[-d]')
- options, _ = parser.parse_args(['-j', '1'])
- self.assertEqual(options.jobs, 1)
-
- def test_argv_from_args(self):
-
- def check(argv, expected=None):
- parser = ArgumentParser()
- args = parser.parse_args(argv)
- actual_argv = parser.argv_from_args(args)
- expected = expected or argv
- self.assertEqual(expected, actual_argv)
-
- check(['--version'])
- check(['--coverage', '--coverage-omit', 'foo'])
- check(['--jobs', '3'])
- check(['-vv'], ['--verbose', '--verbose'])
« no previous file with comments | « tools/telemetry/third_party/typ/typ/tests/__init__.py ('k') | tools/telemetry/third_party/typ/typ/tests/host_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698