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

Method test_join

Lib/test/test_pathlib/test_join_posix.py:13–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class JoinTestBase:
13 def test_join(self):
14 P = self.cls
15 p = P('//a')
16 pp = p.joinpath('b')
17 self.assertEqual(pp, P('//a/b'))
18 pp = P('/a').joinpath('//c')
19 self.assertEqual(pp, P('//c'))
20 pp = P('//a').joinpath('/c')
21 self.assertEqual(pp, P('/c'))
22
23 def test_div(self):
24 # Basically the same as joinpath().

Callers

nothing calls this directly

Calls 3

PClass · 0.70
joinpathMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected