summaryrefslogtreecommitdiff
path: root/tools/util_test.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-09-11 16:47:42 -0400
committerGitHub <noreply@github.com>2019-09-11 16:47:42 -0400
commit82dc1b8e59891a7ca0f1a5e67a3db952b918561c (patch)
treee958c5d7bff81a4f218ad81b5e7b56451213d60a /tools/util_test.py
parentad11f2ad6aae758e67734d60f068285fb5e10655 (diff)
Upgrade pylint (#2917)
depot_tools is removing pylint from its distribution so we must maintain our own copy.
Diffstat (limited to 'tools/util_test.py')
-rwxr-xr-xtools/util_test.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/util_test.py b/tools/util_test.py
index 4a545ff1c..b8098e463 100755
--- a/tools/util_test.py
+++ b/tools/util_test.py
@@ -8,18 +8,18 @@ from util import (parse_exit_code, shell_quote_win, parse_wrk_output,
class TestUtil(DenoTestCase):
def test_parse_exit_code(self):
- assert 54 == parse_exit_code('hello_error54_world')
- assert 1 == parse_exit_code('hello_error_world')
- assert 0 == parse_exit_code('hello_world')
+ assert parse_exit_code('hello_error54_world') == 54
+ assert parse_exit_code('hello_error_world') == 1
+ assert parse_exit_code('hello_world') == 0
def test_shell_quote_win(self):
- assert 'simple' == shell_quote_win('simple')
- assert 'roof/\\isoprojection' == shell_quote_win(
- 'roof/\\isoprojection')
- assert '"with space"' == shell_quote_win('with space')
- assert '"embedded""quote"' == shell_quote_win('embedded"quote')
- assert '"a""b""""c\\d\\\\""e\\\\\\\\"' == shell_quote_win(
- 'a"b""c\\d\\"e\\\\')
+ assert shell_quote_win('simple') == 'simple'
+ assert shell_quote_win(
+ 'roof/\\isoprojection') == 'roof/\\isoprojection'
+ assert shell_quote_win('with space') == '"with space"'
+ assert shell_quote_win('embedded"quote') == '"embedded""quote"'
+ assert shell_quote_win(
+ 'a"b""c\\d\\"e\\\\') == '"a""b""""c\\d\\\\""e\\\\\\\\"'
def test_parse_wrk_output(self):
f = open(os.path.join(root_path, "tools/testdata/wrk1.txt"))