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

Method test_anchor

Lib/test/test_pathlib/test_join.py:245–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

243 par[3]
244
245 def test_anchor(self):
246 P = self.cls
247 sep = self.cls.parser.sep
248 self.assertEqual(P('').anchor, '')
249 self.assertEqual(P(f'a{sep}b').anchor, '')
250 self.assertEqual(P(sep).anchor, sep)
251 self.assertEqual(P(f'{sep}a{sep}b').anchor, sep)
252
253 def test_name(self):
254 P = self.cls

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected