OLD | NEW |
---|---|
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 Loading... | |
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') | |
OLD | NEW |