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

Method test_anchor

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

Source from the content-addressed store, hash-verified

164 par[2]
165
166 def test_anchor(self):
167 P = self.cls
168 self.assertEqual(P('c:').anchor, 'c:')
169 self.assertEqual(P('c:a/b').anchor, 'c:')
170 self.assertEqual(P('c:\\').anchor, 'c:\\')
171 self.assertEqual(P('c:\\a\\b\\').anchor, 'c:\\')
172 self.assertEqual(P('\\\\a\\b\\').anchor, '\\\\a\\b\\')
173 self.assertEqual(P('\\\\a\\b\\c\\d').anchor, '\\\\a\\b\\')
174
175 def test_name(self):
176 P = self.cls

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected