| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 import unittest | 4 import unittest |
| 5 | 5 |
| 6 from telemetry import browser_options | 6 from telemetry import browser_options |
| 7 | 7 |
| 8 class BrowserOptionsTest(unittest.TestCase): | 8 class BrowserOptionsTest(unittest.TestCase): |
| 9 def testDefaults(self): | 9 def testDefaults(self): |
| 10 options = browser_options.BrowserOptions() | 10 options = browser_options.BrowserOptions() |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 self.assertTrue(options.verbosity) | 51 self.assertTrue(options.verbosity) |
| 52 | 52 |
| 53 def testOptparseMutabilityWhenNotSpecified(self): | 53 def testOptparseMutabilityWhenNotSpecified(self): |
| 54 options = browser_options.BrowserOptions() | 54 options = browser_options.BrowserOptions() |
| 55 | 55 |
| 56 parser = options.CreateParser() | 56 parser = options.CreateParser() |
| 57 parser.add_option('-x', dest='verbosity', action='store_true') | 57 parser.add_option('-x', dest='verbosity', action='store_true') |
| 58 options_ret, _ = parser.parse_args(['--browser', 'any']) | 58 options_ret, _ = parser.parse_args(['--browser', 'any']) |
| 59 self.assertEquals(options_ret, options) | 59 self.assertEquals(options_ret, options) |
| 60 self.assertFalse(options.verbosity) | 60 self.assertFalse(options.verbosity) |
| OLD | NEW |