MCPcopy Create free account
hub / github.com/enthought/apptools / test_split_path

Method test_split_path

apptools/io/h5/tests/test_file.py:334–345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 assert "/group" in h5
333
334 def test_split_path(self):
335 path, node = H5File.split_path("/")
336 assert path == "/"
337 assert node == ""
338
339 path, node = H5File.split_path("/node")
340 assert path == "/"
341 assert node == "node"
342
343 path, node = H5File.split_path("/group/node")
344 assert path == "/group"
345 assert node == "node"
346
347 def test_join_path(self):
348 path = H5File.join_path("/", "a", "b", "c")

Callers

nothing calls this directly

Calls 1

split_pathMethod · 0.80

Tested by

no test coverage detected