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

Method test_constructor

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

Source from the content-addressed store, hash-verified

24 self.assertIsInstance(self.cls.parser, _PathParser)
25
26 def test_constructor(self):
27 P = self.cls
28 p = P('a')
29 self.assertIsInstance(p, P)
30 P()
31 P('a', 'b', 'c')
32 P('/a', 'b', 'c')
33 P('a/b/c')
34 P('/a/b/c')
35
36 def test_with_segments(self):
37 class P(self.cls):

Callers

nothing calls this directly

Calls 2

assertIsInstanceMethod · 0.80
PClass · 0.70

Tested by

no test coverage detected