diff --git a/tests/test_pathtools.py b/tests/test_pathtools.py index 006368338e0c1f06d309882b4ad2cfc227bf8cd8..fb81e81131ec000756fdec94ac58eb161b04c727 100644 --- a/tests/test_pathtools.py +++ b/tests/test_pathtools.py @@ -4,6 +4,7 @@ import pytest from imcflibs.pathtools import parse_path from imcflibs.pathtools import jython_fiji_exists +from imcflibs.pathtools import image_basename __author__ = "Niko Ehrenfeuchter" __copyright__ = "Niko Ehrenfeuchter" @@ -45,3 +46,9 @@ def test_parse_path_windows(): def test_jython_fiji_exists(tmpdir): assert jython_fiji_exists(str(tmpdir)) == True + + +def test_image_basename(): + assert image_basename('/path/to/image_file_01.png') == 'image_file_01' + assert image_basename('more-complex-stack.ome.tif') == 'more-complex-stack' + assert image_basename('/tmp/FoObAr.OMe.tIf') == 'FoObAr'