# -*- coding: utf-8 -*-
import pytest


def test_util():
    pytest.xfail('unimplemented')

@@ -21,71 +21,643 @@
 -*-%0A
-import pytest%0A%0A%0Adef test_util():%0A    pytest.xfail('unimplemented')
+from pysis.util import (%0A    file_variations,%0A    ImageName,%0A)%0A%0A%0Adef test_file_variations():%0A    result = file_variations('image.IMG', %5B'.cub', '.cal.cub'%5D)%0A    assert len(result) == 2%0A    assert result%5B0%5D == 'image.cub'%0A    assert result%5B1%5D == 'image.cal.cub'%0A%0A    result = file_variations('foo/image', %5B'.TIFF'%5D)%0A    assert len(result) == 1%0A    assert result%5B0%5D == 'foo/image.TIFF'%0A%0A%0Adef test_image_name():%0A    assert str(ImageName('test')) == 'test'%0A    assert str(ImageName('image').IMG) == 'image.IMG'%0A    assert str(ImageName('image').cal.cub) == 'image.cal.cub'%0A    assert str(ImageName('foo/image.bar').baz) == 'foo/image.bar.baz'
 %0A

Add tests for utils.