From f170447619da527225096248ef47a1e87d9f2345 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 6 Sep 2019 08:59:13 -0600 Subject: [PATCH] tests: test_help cosmetics Adjust some comments and remove parentheses (which are unnecessary in assert statements in Python). Signed-off-by: Marti Bolivar --- tests/test_help.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_help.py b/tests/test_help.py index bd79d8d..de99bae 100644 --- a/tests/test_help.py +++ b/tests/test_help.py @@ -5,14 +5,16 @@ from west.main import BUILTIN_COMMAND_NAMES from conftest import cmd -def test_help(west_init_tmpdir): - # Check that output from help is equivalent to -h +def test_help_and_dash_h(west_init_tmpdir): + # Test "west help" and "west -h" are the same. h1out = cmd('help') h2out = cmd('-h') - assert(h1out == h2out) + assert h1out == h2out + # Test "west help " and "west -h" for built-in + # commands. for c in BUILTIN_COMMAND_NAMES: h1out = cmd('help {}'.format(c)) h2out = cmd('{} -h'.format(c)) - assert(h1out == h2out) + assert h1out == h2out