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

Method test_parts

Lib/test/test_pathlib/test_join_windows.py:85–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 self.assertEqual(str(p), '\\\\a\\b\\c\\d')
84
85 def test_parts(self):
86 P = self.cls
87 p = P(r'c:a\b')
88 parts = p.parts
89 self.assertEqual(parts, ('c:', 'a', 'b'))
90 p = P(r'c:\a\b')
91 parts = p.parts
92 self.assertEqual(parts, ('c:\\', 'a', 'b'))
93 p = P(r'\\a\b\c\d')
94 parts = p.parts
95 self.assertEqual(parts, ('\\\\a\\b\\', 'c', 'd'))
96
97 def test_parent(self):
98 # Anchored

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected