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

Method test_div

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

Source from the content-addressed store, hash-verified

21 self.assertEqual(pp, P('/c'))
22
23 def test_div(self):
24 # Basically the same as joinpath().
25 P = self.cls
26 p = P('//a')
27 pp = p / 'b'
28 self.assertEqual(pp, P('//a/b'))
29 pp = P('/a') / '//c'
30 self.assertEqual(pp, P('//c'))
31 pp = P('//a') / '/c'
32 self.assertEqual(pp, P('/c'))
33
34
35class LexicalPosixPathJoinTest(JoinTestBase, unittest.TestCase):

Callers

nothing calls this directly

Calls 2

PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected