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

Method test_splitdrive

Lib/test/test_genericpath.py:401–410  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

399 self.assertRaises(TypeError, normcase, path)
400
401 def test_splitdrive(self):
402 # splitdrive for non-NT paths
403 splitdrive = self.pathmodule.splitdrive
404 self.assertEqual(splitdrive("/foo/bar"), ("", "/foo/bar"))
405 self.assertEqual(splitdrive("foo:bar"), ("", "foo:bar"))
406 self.assertEqual(splitdrive(":foo:bar"), ("", ":foo:bar"))
407
408 self.assertEqual(splitdrive(b"/foo/bar"), (b"", b"/foo/bar"))
409 self.assertEqual(splitdrive(b"foo:bar"), (b"", b"foo:bar"))
410 self.assertEqual(splitdrive(b":foo:bar"), (b"", b":foo:bar"))
411
412 def test_expandvars(self):
413 expandvars = self.pathmodule.expandvars

Callers

nothing calls this directly

Calls 2

splitdriveFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected