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

Method test_is_junction_true

Lib/test/test_pathlib/test_pathlib.py:2706–2711  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2704 self.assertFalse((P / 'fileA\x00').is_junction())
2705
2706 def test_is_junction_true(self):
2707 P = self.cls(self.base)
2708
2709 with mock.patch.object(P.parser, 'isjunction'):
2710 self.assertEqual(P.is_junction(), P.parser.isjunction.return_value)
2711 P.parser.isjunction.assert_called_once_with(P)
2712
2713 def test_is_fifo_false(self):
2714 P = self.cls(self.base)

Callers

nothing calls this directly

Calls 4

is_junctionMethod · 0.80
clsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected