Skip to content
Snippets Groups Projects
Commit 7fa20554 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST test applyxfm4D wrapper

parent d2f522f6
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,17 @@ def test_applyxfm(): ...@@ -105,6 +105,17 @@ def test_applyxfm():
assert checkResult(result.output[0], *expected) assert checkResult(result.output[0], *expected)
def test_applyxfm():
with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('applyxfm4D',)) as fsldir:
applyxfm = op.join(fsldir, 'bin', 'applyxfm4D')
result = fw.applyxfm4D(
'src', 'ref', 'out', 'mat', fourdigit=True, userprefix='boo')
expected = (applyxfm + ' src ref out mat',
('-fourdigit',
'-userprefix boo'))
assert checkResult(result.output[0], *expected)
def test_invxfm(): def test_invxfm():
with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('convert_xfm',)) as fsldir: with asrt.disabled(), run.dryrun(), mockFSLDIR(bin=('convert_xfm',)) as fsldir:
cnvxfm = op.join(fsldir, 'bin', 'convert_xfm') cnvxfm = op.join(fsldir, 'bin', 'convert_xfm')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment