def test_shorten_fname():
    npt.assert_equal(util.shorten_fname("/a/b/c/name.ext"), "name")
    npt.assert_equal(util.shorten_fname("path/to/fname.name2.ext2"),
                     "fname.name2")
    npt.assert_equal(util.shorten_fname("fname.ext"), "fname")
    npt.assert_equal(util.shorten_fname("fname"), "fname")
Test util.shorten_fname
dataset/ETHPy150Open cesium-ml/cesium/cesium/tests/test_util.py/test_shorten_fname