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

Side by Side Diff: tools/telemetry/telemetry/value/list_of_scalar_values_unittest.py

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 os 4 import os
5 import unittest 5 import unittest
6 6
7 from telemetry import page as page_module 7 from telemetry import page as page_module
8 from telemetry.page import page_set
8 from telemetry import value 9 from telemetry import value
9 from telemetry.page import page_set
10 from telemetry.value import list_of_scalar_values 10 from telemetry.value import list_of_scalar_values
11 from telemetry.value import none_values 11 from telemetry.value import none_values
12 12
13 13
14 class TestBase(unittest.TestCase): 14 class TestBase(unittest.TestCase):
15 def setUp(self): 15 def setUp(self):
16 ps = page_set.PageSet(file_path=os.path.dirname(__file__)) 16 ps = page_set.PageSet(file_path=os.path.dirname(__file__))
17 ps.AddUserStory(page_module.Page('http://www.bar.com/', ps, ps.base_dir)) 17 ps.AddUserStory(page_module.Page('http://www.bar.com/', ps, ps.base_dir))
18 ps.AddUserStory(page_module.Page('http://www.baz.com/', ps, ps.base_dir)) 18 ps.AddUserStory(page_module.Page('http://www.baz.com/', ps, ps.base_dir))
19 ps.AddUserStory(page_module.Page('http://www.foo.com/', ps, ps.base_dir)) 19 ps.AddUserStory(page_module.Page('http://www.foo.com/', ps, ps.base_dir))
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 'name': 'x', 162 'name': 'x',
163 'units': 'unit', 163 'units': 'unit',
164 'values': None, 164 'values': None,
165 'none_value_reason': 'n' 165 'none_value_reason': 'n'
166 } 166 }
167 v = value.Value.FromDict(d, {}) 167 v = value.Value.FromDict(d, {})
168 168
169 self.assertTrue(isinstance(v, list_of_scalar_values.ListOfScalarValues)) 169 self.assertTrue(isinstance(v, list_of_scalar_values.ListOfScalarValues))
170 self.assertEquals(v.values, None) 170 self.assertEquals(v.values, None)
171 self.assertEquals(v.none_value_reason, 'n') 171 self.assertEquals(v.none_value_reason, 'n')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698