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

Unified Diff: build/android/devil/android/battery_utils_test.py

Issue 1315743004: [Android] Add a custom pylintrc for build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix appurify_sanitized import-errors Created 5 years, 3 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 | « build/android/devil/android/battery_utils.py ('k') | build/android/devil/android/decorators.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/devil/android/battery_utils_test.py
diff --git a/build/android/devil/android/battery_utils_test.py b/build/android/devil/android/battery_utils_test.py
index afb932d763a9d89f972d85aa1b2a8a1087412162..64253a526c598d677c402516e6e8d02173d38a78 100755
--- a/build/android/devil/android/battery_utils_test.py
+++ b/build/android/devil/android/battery_utils_test.py
@@ -7,7 +7,7 @@
Unit tests for the contents of battery_utils.py
"""
-# pylint: disable=W0613
+# pylint: disable=protected-access,unused-argument
import logging
import os
@@ -400,14 +400,14 @@ class BatteryUtilsGetNetworkDataTest(BatteryUtilsTest):
_DUMPSYS_OUTPUT),
(self.call.device.ReadFile('/proc/uid_stat/1000/tcp_snd'), 1),
(self.call.device.ReadFile('/proc/uid_stat/1000/tcp_rcv'), 2)):
- self.assertEqual(self.battery.GetNetworkData('test_package1'), (1,2))
+ self.assertEqual(self.battery.GetNetworkData('test_package1'), (1, 2))
def testGetNetworkData_packageCached(self):
self.battery._cache['uids'] = {'test_package1': '1000'}
with self.assertCalls(
(self.call.device.ReadFile('/proc/uid_stat/1000/tcp_snd'), 1),
(self.call.device.ReadFile('/proc/uid_stat/1000/tcp_rcv'), 2)):
- self.assertEqual(self.battery.GetNetworkData('test_package1'), (1,2))
+ self.assertEqual(self.battery.GetNetworkData('test_package1'), (1, 2))
def testGetNetworkData_clearedCache(self):
with self.assertCalls(
@@ -418,7 +418,7 @@ class BatteryUtilsGetNetworkDataTest(BatteryUtilsTest):
(self.call.device.ReadFile('/proc/uid_stat/1000/tcp_snd'), 1),
(self.call.device.ReadFile('/proc/uid_stat/1000/tcp_rcv'), 2)):
self.battery._cache.clear()
- self.assertEqual(self.battery.GetNetworkData('test_package1'), (1,2))
+ self.assertEqual(self.battery.GetNetworkData('test_package1'), (1, 2))
class BatteryUtilsLetBatteryCoolToTemperatureTest(BatteryUtilsTest):
@@ -486,7 +486,7 @@ class BatteryUtilsGetFuelGaugeChargeCounterTest(BatteryUtilsTest):
self.battery.GetFuelGaugeChargeCounter()
def testGetFuelGaugeChargeCounter_fuelGaugePresent(self):
- self.battery._cache['profile']= self._NEXUS_6
+ self.battery._cache['profile'] = self._NEXUS_6
with self.assertCalls(
(self.call.battery.SupportsFuelGauge(), True),
(self.call.device.ReadFile(mock.ANY), '123')):
« no previous file with comments | « build/android/devil/android/battery_utils.py ('k') | build/android/devil/android/decorators.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698