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

Silly test for silly function

parent 3546ed03
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,20 @@ def test_shallowest():
assert fslpath.shallowest(path, suffixes) == output
def test_hasExt():
tests = [
('file.nii', ['.nii', '.gz'], True),
('file.nii.gz', ['.nii'], False),
('file.nii.gz', ['.nii', '.gz'], True),
('file.nii.gz', ['.nii.gz'], True),
('file.txt', ['.nii', '.gz'], False),
]
for path, aexts, expected in tests:
assert fslpath.hasExt(path, aexts) == expected
def test_addExt_imageFiles_mustExist_shouldPass():
"""Tests the addExt function where the path exists, and the inputs
are valid.
......
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