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

Method test_name

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

Source from the content-addressed store, hash-verified

251 self.assertEqual(P(f'{sep}a{sep}b').anchor, sep)
252
253 def test_name(self):
254 P = self.cls
255 self.assertEqual(P('').name, '')
256 self.assertEqual(P('/').name, '')
257 self.assertEqual(P('a/b').name, 'b')
258 self.assertEqual(P('/a/b').name, 'b')
259 self.assertEqual(P('a/b.py').name, 'b.py')
260 self.assertEqual(P('/a/b.py').name, 'b.py')
261
262 def test_suffix(self):
263 P = self.cls

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected