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

Unified Diff: webrtc/tools/py_event_log_analyzer/misc_test.py

Issue 2812273002: Fix lint errors to enable stricter PyLint rules (Closed)
Patch Set: Rebased Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/tools/py_event_log_analyzer/misc.py ('k') | webrtc/tools/py_event_log_analyzer/pb_parse.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/py_event_log_analyzer/misc_test.py
diff --git a/webrtc/tools/py_event_log_analyzer/misc_test.py b/webrtc/tools/py_event_log_analyzer/misc_test.py
index cf8c91076cdaeffc44ae9d81c2f1a2a4734ae704..33449a707620b42d79a947245d1cf0589fae7d3c 100755
--- a/webrtc/tools/py_event_log_analyzer/misc_test.py
+++ b/webrtc/tools/py_event_log_analyzer/misc_test.py
@@ -24,17 +24,17 @@ import misc
class TestMisc(unittest.TestCase):
def testUnwrapMod3(self):
data = [0, 1, 2, 0, -1, -2, -3, -4]
- unwrapped_3 = misc.unwrap(data, 3)
+ unwrapped_3 = misc.Unwrap(data, 3)
self.assertEqual([0, 1, 2, 3, 2, 1, 0, -1], unwrapped_3)
def testUnwrapMod4(self):
data = [0, 1, 2, 0, -1, -2, -3, -4]
- unwrapped_4 = misc.unwrap(data, 4)
+ unwrapped_4 = misc.Unwrap(data, 4)
self.assertEqual([0, 1, 2, 0, -1, -2, -3, -4], unwrapped_4)
def testDataShouldNotChangeAfterUnwrap(self):
data = [0, 1, 2, 0, -1, -2, -3, -4]
- _ = misc.unwrap(data, 4)
+ _ = misc.Unwrap(data, 4)
self.assertEqual([0, 1, 2, 0, -1, -2, -3, -4], data)
@@ -43,7 +43,7 @@ class TestMisc(unittest.TestCase):
random_data = [random.randint(0, 9) for _ in range(100)]
for mod in range(1, 100):
- random_data_unwrapped_mod = misc.unwrap(random_data, mod)
+ random_data_unwrapped_mod = misc.Unwrap(random_data, mod)
for (old_a, a) in zip(random_data, random_data_unwrapped_mod):
self.assertEqual((old_a - a) % mod, 0)
@@ -54,7 +54,7 @@ class TestMisc(unittest.TestCase):
random_data = [random.randint(0, 9) for _ in range(100)]
for mod in range(1, 100):
- random_data_unwrapped_mod = misc.unwrap(random_data, mod)
+ random_data_unwrapped_mod = misc.Unwrap(random_data, mod)
for (a, b) in zip(random_data_unwrapped_mod,
random_data_unwrapped_mod[1:]):
@@ -64,7 +64,7 @@ class TestMisc(unittest.TestCase):
random_data = [random.randint(0, 9) for _ in range(100)]
random_data_copy = random_data[:]
for mod in range(1, 100):
- _ = misc.unwrap(random_data, mod)
+ _ = misc.Unwrap(random_data, mod)
self.assertEqual(random_data, random_data_copy)
« no previous file with comments | « webrtc/tools/py_event_log_analyzer/misc.py ('k') | webrtc/tools/py_event_log_analyzer/pb_parse.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698