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

Method test_parts

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

Source from the content-addressed store, hash-verified

88 self.assertEqual(vfspath(p), '\\\\a\\b\\c\\d')
89
90 def test_parts(self):
91 P = self.cls
92 p = P(r'c:a\b')
93 parts = p.parts
94 self.assertEqual(parts, ('c:', 'a', 'b'))
95 p = P(r'c:\a\b')
96 parts = p.parts
97 self.assertEqual(parts, ('c:\\', 'a', 'b'))
98 p = P(r'\\a\b\c\d')
99 parts = p.parts
100 self.assertEqual(parts, ('\\\\a\\b\\', 'c', 'd'))
101
102 def test_parent(self):
103 # Anchored

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected