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

Method test_splitext

Lib/test/test_posixpath.py:114–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 (filename + ext + b"/", b""))
113
114 def test_splitext(self):
115 self.splitextTest("foo.bar", "foo", ".bar")
116 self.splitextTest("foo.boo.bar", "foo.boo", ".bar")
117 self.splitextTest("foo.boo.biff.bar", "foo.boo.biff", ".bar")
118 self.splitextTest(".csh.rc", ".csh", ".rc")
119 self.splitextTest("nodots", "nodots", "")
120 self.splitextTest(".cshrc", ".cshrc", "")
121 self.splitextTest("...manydots", "...manydots", "")
122 self.splitextTest("...manydots.ext", "...manydots", ".ext")
123 self.splitextTest(".", ".", "")
124 self.splitextTest("..", "..", "")
125 self.splitextTest("........", "........", "")
126 self.splitextTest("", "", "")
127
128 def test_splitroot(self):
129 f = posixpath.splitroot

Callers

nothing calls this directly

Calls 1

splitextTestMethod · 0.95

Tested by

no test coverage detected