Skip to content

Commit fc18c78

Browse files
committed
TST(BK): test_LaplacianThickness_wrongargs to demonstrate #2847
1 parent 0430c85 commit fc18c78

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nipype/interfaces/ants/tests/test_segmentation.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,12 @@ def test_LaplacianThickness_defaults(change_dir, create_lt):
3838
assert lt.cmdline == base_cmd + " 4.5"
3939
lt.inputs.prior_thickness = 5.9
4040
assert lt.cmdline == base_cmd + " 4.5 5.9"
41+
42+
43+
def test_LaplacianThickness_wrongargs(change_dir, create_lt):
44+
lt = create_lt
45+
lt.inputs.prior_thickness = 5.9
46+
# 500 must not be placed as smooth_param
47+
assert lt.cmdline != 'LaplacianThickness functional.nii diffusion_weighted.nii functional_thickness.nii 5.9'
48+
# probably should have just raised an exception that "smooth_param"
49+
# should also be defined

0 commit comments

Comments
 (0)