MCPcopy Index your code
hub / github.com/python/cpython / test_split

Method test_split

Lib/test/test_ntpath.py:256–266  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

254 (b'\\\\\xff\\\xfe', b'\\', b'\xfd'))
255
256 def test_split(self):
257 tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar'))
258 tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")',
259 ('\\\\conky\\mountpoint\\foo', 'bar'))
260
261 tester('ntpath.split("c:\\")', ('c:\\', ''))
262 tester('ntpath.split("\\\\conky\\mountpoint\\")',
263 ('\\\\conky\\mountpoint\\', ''))
264
265 tester('ntpath.split("c:/")', ('c:/', ''))
266 tester('ntpath.split("//conky/mountpoint/")', ('//conky/mountpoint/', ''))
267
268 def test_split_invalid_paths(self):
269 split = ntpath.split

Callers

nothing calls this directly

Calls 1

testerFunction · 0.85

Tested by

no test coverage detected