MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_str

Method _check_str

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

Source from the content-addressed store, hash-verified

157 self._check_str_subclass('\\\\some\\share\\a\\b.txt')
158
159 def _check_str(self, expected, args):
160 p = self.cls(*args)
161 self.assertEqual(str(p), expected.replace('/', self.sep))
162
163 def test_str_common(self):
164 # 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