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

Method test_vfspath

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

Source from the content-addressed store, hash-verified

76 self.assertEqual(p / 'E:d:s', P('E:d:s'))
77
78 def test_vfspath(self):
79 p = self.cls(r'a\b\c')
80 self.assertEqual(vfspath(p), 'a\\b\\c')
81 p = self.cls(r'c:\a\b\c')
82 self.assertEqual(vfspath(p), 'c:\\a\\b\\c')
83 p = self.cls('\\\\a\\b\\')
84 self.assertEqual(vfspath(p), '\\\\a\\b\\')
85 p = self.cls(r'\\a\b\c')
86 self.assertEqual(vfspath(p), '\\\\a\\b\\c')
87 p = self.cls(r'\\a\b\c\d')
88 self.assertEqual(vfspath(p), '\\\\a\\b\\c\\d')
89
90 def test_parts(self):
91 P = self.cls

Callers

nothing calls this directly

Calls 3

vfspathFunction · 0.90
clsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected