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

Method _check_str

Lib/test/test_pathlib/test_pathlib.py:156–158  ·  view source on GitHub ↗
(self, expected, args)

Source from the content-addressed store, hash-verified

154 self._check_str_subclass('\\\\some\\share\\a\\b.txt')
155
156 def _check_str(self, expected, args):
157 p = self.cls(*args)
158 self.assertEqual(str(p), expected.replace('/', self.sep))
159
160 def test_str_common(self):
161 # Canonicalized paths roundtrip.

Callers 3

test_str_commonMethod · 0.95
test_empty_pathMethod · 0.95
test_fspath_commonMethod · 0.95

Calls 4

strFunction · 0.85
clsMethod · 0.45
assertEqualMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected