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

Unified Diff: tools/telemetry/telemetry/core/camel_case_unittest.py

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month 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/telemetry/core/camel_case_unittest.py
diff --git a/tools/telemetry/telemetry/core/camel_case_unittest.py b/tools/telemetry/telemetry/core/camel_case_unittest.py
index 0714d3c56038e5873fe5eb19a90d5bee495a9d4d..4eb34bcd0ff863db4e6b0e61de34c3339fa8a725 100644
--- a/tools/telemetry/telemetry/core/camel_case_unittest.py
+++ b/tools/telemetry/telemetry/core/camel_case_unittest.py
@@ -8,6 +8,7 @@ from telemetry.core import camel_case
class CamelCaseTest(unittest.TestCase):
+
def testString(self):
self.assertEqual(camel_case.ToUnderscore('camelCase'), 'camel_case')
self.assertEqual(camel_case.ToUnderscore('CamelCase'), 'camel_case')
@@ -22,26 +23,26 @@ class CamelCaseTest(unittest.TestCase):
def testDict(self):
camel_case_dict = {
- 'gpu': {
- 'vendorId': 1000,
- 'deviceId': 2000,
- 'vendorString': 'aString',
- 'deviceString': 'bString' },
- 'secondaryGpus': [
- { 'vendorId': 3000, 'deviceId': 4000,
- 'vendorString': 'k', 'deviceString': 'l' }
- ]
+ 'gpu': {
+ 'vendorId': 1000,
+ 'deviceId': 2000,
+ 'vendorString': 'aString',
+ 'deviceString': 'bString'},
+ 'secondaryGpus': [
+ {'vendorId': 3000, 'deviceId': 4000,
+ 'vendorString': 'k', 'deviceString': 'l'}
+ ]
}
underscore_dict = {
- 'gpu': {
- 'vendor_id': 1000,
- 'device_id': 2000,
- 'vendor_string': 'aString',
- 'device_string': 'bString' },
- 'secondary_gpus': [
- { 'vendor_id': 3000, 'device_id': 4000,
- 'vendor_string': 'k', 'device_string': 'l' }
- ]
+ 'gpu': {
+ 'vendor_id': 1000,
+ 'device_id': 2000,
+ 'vendor_string': 'aString',
+ 'device_string': 'bString'},
+ 'secondary_gpus': [
+ {'vendor_id': 3000, 'device_id': 4000,
+ 'vendor_string': 'k', 'device_string': 'l'}
+ ]
}
self.assertEqual(camel_case.ToUnderscore(camel_case_dict), underscore_dict)
« no previous file with comments | « tools/telemetry/telemetry/core/browser_options_unittest.py ('k') | tools/telemetry/telemetry/core/extension_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698