Fix typo, rename test function and align style (#677)
* Fix typo in docsting of utils.run_command.
* Rename the test function name and align string style.
diff --git a/mobly/utils.py b/mobly/utils.py
index 2ec550d..ef2bd98 100644
--- a/mobly/utils.py
+++ b/mobly/utils.py
@@ -336,7 +336,7 @@
stdout: file handle, the file handle to write std out to. If None is
given, then subprocess.PIPE is used. See subprocess.Popen()
documentation.
- stdee: file handle, the file handle to write std err to. If None is
+ stderr: file handle, the file handle to write std err to. If None is
given, then subprocess.PIPE is used. See subprocess.Popen()
documentation.
shell: bool, True to run this command through the system shell,
diff --git a/tests/mobly/controllers/android_device_test.py b/tests/mobly/controllers/android_device_test.py
index 1611bfa..435f3f1 100755
--- a/tests/mobly/controllers/android_device_test.py
+++ b/tests/mobly/controllers/android_device_test.py
@@ -1298,11 +1298,11 @@
'adb.AdbError or adb.AdbTimeoutError exception raised but not handled.'
)
- def test_AndroidDevice_parse_parse_device_list_when_decode_error(self):
+ def test_AndroidDevice_parse_device_list_when_decode_error(self):
gbk_str = b'\xc4\xe3\xba\xc3'
raised = False
try:
- android_device.parse_device_list(gbk_str, "somekey")
+ android_device.parse_device_list(gbk_str, 'some_key')
except UnicodeDecodeError:
raised = True
self.assertTrue(