Skip to content

Commit f5cb431

Browse files
committed
Merge branch 'master' of https://github.com/chrispycheng/nibabel
2 parents 7f90116 + 6612178 commit f5cb431

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

nibabel/tests/test_scripts.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,22 @@ def test_nib_ls_multiple():
128128
)
129129

130130

131+
@script_test
132+
def test_help():
133+
for cmd in ['parrec2nii', 'nib-dicomfs', 'nib-ls', 'nib-nifti-dx']:
134+
if cmd == 'nib-dicomfs':
135+
# needs special treatment since depends on fuse module which
136+
# might not be available.
137+
try:
138+
import fuse
139+
except Exception:
140+
continue # do not test this one
141+
code, stdout, stderr = run_command([cmd, '--help'])
142+
assert_equal(code, 0)
143+
assert_re_in(".*%s" % cmd, stdout)
144+
assert_re_in(".*Usage", stdout)
145+
assert_equal(stderr, '')
146+
131147

132148
@script_test
133149
def test_nib_nifti_dx():

0 commit comments

Comments
 (0)