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

Side by Side Diff: tools/telemetry/telemetry/core/util_unittest.py

Issue 321773002: [PowerProfiler] Make sure correct version of pySerial is imported with monsoon profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 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 os 4 import os
5 import unittest 5 import unittest
6 import shutil 6 import shutil
7 import tempfile 7 import tempfile
8 8
9 from telemetry.core import util 9 from telemetry.core import util
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 with open( 55 with open(
56 os.path.join(self.test_directory, 'test_%03d.json' % i), 'w') as _: 56 os.path.join(self.test_directory, 'test_%03d.json' % i), 'w') as _:
57 pass 57 pass
58 next_json_test_file_path = util.GetSequentialFileName( 58 next_json_test_file_path = util.GetSequentialFileName(
59 os.path.join(self.test_directory, 'test')) 59 os.path.join(self.test_directory, 'test'))
60 self.assertEquals(os.path.join(self.test_directory, 'test_003'), 60 self.assertEquals(os.path.join(self.test_directory, 'test_003'),
61 next_json_test_file_path) 61 next_json_test_file_path)
62 62
63 def tearDown(self): 63 def tearDown(self):
64 shutil.rmtree(self.test_directory) 64 shutil.rmtree(self.test_directory)
65
66 class PySerialVersionTest(unittest.TestCase):
qsr 2014/06/11 12:24:21 Don't you need to call AddDirToPythonPath? Is it o
vivekg 2014/06/11 12:41:41 Yes you are right. We should call AddDirToPythonPa
qsr 2014/06/11 13:23:38 If your test was not failing, it is probably not t
67 def testPySerialVersion(self):
68 import serial
69 self.assertEqual(serial.VERSION, '2.7')
OLDNEW
« tools/telemetry/telemetry/core/util.py ('K') | « tools/telemetry/telemetry/core/util.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698